note 114380 added to wrappers

From: Date: Thu, 13 Feb 2014 19:14:03 +0000
Subject: note 114380 added to wrappers
Groups: php.notes 
Request: Send a blank email to php-notes+get-198503@lists.php.net to get a copy of this message
A useful way to handle large file uploads is to do something like: copy(("php://input"),$tmpfile); as this avoids using lots of memory just to buffer the file content. The correct mime type for this should be "application/octet-stream" however if you set this or any other recognised mime type other than "multipart/form-data" on your POST then $HTTP_RAW_POST_DATA is populated and the memory is consumed anyway. Setting the mime type to "multipart/form-data" raises “PHP Warning: Missing boundary in multipart/form-data POST data in Unknown on line 0” however it seems to work without a problem. ---- Server IP: 72.52.91.14 Probable Submitter: 72.52.91.14 ---- Manual Page -- http://php.net/manual/en/wrappers.php Edit -- https://master.php.net/note/edit/114380 Del: integrated -- https://master.php.net/note/delete/114380/integrated Del: useless -- https://master.php.net/note/delete/114380/useless Del: bad code -- https://master.php.net/note/delete/114380/bad+code Del: spam -- https://master.php.net/note/delete/114380/spam Del: non-english -- https://master.php.net/note/delete/114380/non-english Del: in docs -- https://master.php.net/note/delete/114380/in+docs Del: other reasons-- https://master.php.net/note/delete/114380 Reject -- https://master.php.net/note/reject/114380 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#198503) next »