Topic: Large file uploads (over 2MB)... How? Or impossible? (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=28538" title="Pages that link to Topic: Large file uploads (over 2MB)... How? Or impossible? (Page 1 of 1)" rel="nofollow" >Topic: Large file uploads (over 2MB)... How? Or impossible? <span class="small">(Page 1 of 1)</span>\

 
Arnitald
Bipolar (III) Inmate

From: Germany
Insane since: Apr 2004

posted posted 10-15-2006 16:26

Hi, my host is using the default max upload size of 2MB per upload in PHP.

I would like to upload a 5MB file though, is there a possibility to do this through PHP without having to edit the server ini *which I have no access to of course*?

Maybe using the PHP FTP functions?

Can anyone help me with links or something else, I have searched the internet but could not find any satisfying answer.

Thanks in advance!

Tyberius Prime
Maniac (V) Mad Scientist with Finglongers

From: Germany
Insane since: Sep 2001

posted posted 10-15-2006 17:33

I'm afraid there probably isn't a good one.

You can transfer the files via a different way ( ftp upload? ) and then go through all files in the upload directory.

You can also investigate java based file upload applets, that have the advantage of showing a meaningful progress bar.

But otherwise,
you're pretty much out of luck, I believe

terrestrialhost
Obsessive-Compulsive (I) Inmate

From:
Insane since: Jan 2006

posted posted 10-21-2006 21:41

If you don't have direct ini access, you can try the function ini_set().

For example (To make maximum 12 MB):
ini_set('post_max_size', '12M'); // Default is 8M
ini_set('upload_max_filesize', '12M'); // Default is 2M


Both of these values have to be set in order to achieve POST uploading.

(Edited by terrestrialhost on 10-21-2006 22:05)

Tyberius Prime
Maniac (V) Mad Scientist with Finglongers

From: Germany
Insane since: Sep 2001

posted posted 10-22-2006 13:10

As for my understanding, your suggestion can not work, terrestrialhost, even if you have the rights to do so.
The reason for that is that file uploads are handled before your script get's executed, and your settings only ever apply to the current script.

So long,

->Tyberius Prime

terrestrialhost
Nervous Wreck (II) Inmate

From: Cleveland, OH
Insane since: Jan 2006

posted posted 10-22-2006 22:49

Well, you can try using ini_set on both the page that browses for the uploads and the page that recieves them. Might work.

Or you can try fiddling with the '.htaccess' files (if you're using an apache web server).
http://php.interec.es/manual/en/configuration.changes.php



Post Reply
 
Your User Name:
Your Password:
Login Options:
 
Your Text:
Loading...
Options:


« BackwardsOnwards »

Show Forum Drop Down Menu