RE: [PHP] File Upload - post_max_size and upload_max_filesize inGBs

This is a discussion on RE: [PHP] File Upload - post_max_size and upload_max_filesize inGBs within the PHP General forums, part of the PHP Programming Forums category; > > > Rumor has it that uploaded files are stored in memory before being > > committed > > ...


Go Back   Usenet Forums > PHP Programming Forums > PHP General

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 06-07-2007
Jim Moseby
 
Posts: n/a
Default RE: [PHP] File Upload - post_max_size and upload_max_filesize inGBs

>
> > Rumor has it that uploaded files are stored in memory before being
> > committed
> > to disk. If so, the amount of free RAM available to PHP

> would be the limit
> > to the filesize regardless of the ini file settings.

>
> I don't think that is the case. File is written to temp
> directory as it is
> uploaded.
> And the qeustion is of php having negative values after I
> specify post size
> limit to 4G
>


There is a comment in the documentation for move_uploaded_file() that
indicates the entire file is saved in memory prior to writing to the
temporary upload area. Maybe this is not true. Read it for yourself. Its
just a comment, so who knows?

Also, there is an indication that you may need to tweak memory_limit in
php.ini.


> > You should probably use another method of transport for

> files that large.
> > FTP immediately comes to mind.

>
> You mean ftp client? Like cute ftp. If yes, the problem is
> that along with
> uploading the file I also have to update database to
> associate that file
> with some user etc. It needs to be web based.
>


After a quick search I found an applet that handles file uploads, and can
use FTP as the transport protocol.

http://radinks.com/upload/

JM
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 10:10 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0