|
Posted by Erwin Moller on 06/06/07 08:38
TheReckter wrote:
> I'm currently on a shared host, and upload_tmp_dir is set to none, I
> was wondering if I was required to change that value to allow for file
> uploads, and how I could go about doing that, as I cant seem to upload
> files as it is.
Hi,
See my answer to howa (4 postings earlier in this ng).
In short: You can't.
Solution: Contact your ISP and let them explain to you why they disabled
file-uploads, and what they are going to do about it.
If they do not cooperate, you have several options left:
1) Don't use fileupload.
2) change ISP
3) Dive into the raw posted data.
I expect the uploaded file(s) are somewhere in there.
You'll have to use things like:
$mySocket = fopen('php://input','rb');
I never used it, and I am unsure if it contains the file-upload.
If you want to use such an approach, be prepared for low-level formatting.
No handy dandy things like $_POST[], but a raw datastream.
My advise is to talk with your ISP and tell them their PHP installation is
broken (on purpose maybe).
Tell them also that they can set the maximum size of fileuploads in php.ini
if they are afraid of 50 Gbyte fileuploads crashing their server.
Good luck.
Regards,
Erwin Moller
[Back to original message]
|