Req #20344 [Opn->Fbk]: select a temp dir and filename that is diffrent than the one in php.ini
| From: | levim@php.net | Date: | Wed, 16 Apr 2014 16:48:56 +0000 |
| Subject: | Req #20344 [Opn->Fbk]: select a temp dir and filename that is diffrent than the one in php.ini | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-185280@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=20344&edit=1
ID: 20344
Updated by: levim@php.net
Reported by: john at funnepa dot com
Summary: select a temp dir and filename that is diffrent than
the one in php.ini
-Status: Open
+Status: Feedback
Type: Feature/Change Request
-Package: Feature/Change Request
+Package: *General Issues
-Operating System: any
+Operating System: Any
-PHP Version: 4.3.0-pre2
+PHP Version: *
Block user comment: N
Private report: N
New Comment:
I'm not sure that this is possible. I think it is changeable in the ini because of technical
reasons. Is there still interest in this?
Previous Comments:
------------------------------------------------------------------------
[2005-10-05 12:01:56] george at ishop dot co dot uk
A cheap and painless way of achieving this would be to make use of the temporary file name prefix
(pfx parameter to mkstemp etc.) It is currently HARD-CODED in rfc1867.c to "php". It
could just as easily be picked up from the POST.
This would make an upload progress bar in pure php a trivial exercise i.e.
1. Generate a unique prefix e.g. timestamp/user id.
2. Pass it to a popup progress indicator immediate prior to
submission.
3. Include it as a variable on the post e.g. in UPLOAD_PREFIX
4. Get the popup search to for files with the specified prefix in the temporary directory and
display their file size. Refresh until no files left.
In particular this can be easily retro-fitted to any existing uploads since no code needs changing
in the form target.
------------------------------------------------------------------------
[2002-11-10 14:48:23] john at funnepa dot com
Here's an idea that would have to be included in php itself, but it would prove useful. The
option to select a temp dir and filename that is diffrent than the one in php.ini. One could use a
timestamp and user ID as a temp file name and track it's size in a new window to create a
progress bar for the upload. any comments?
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=20344&edit=1