Req #20344 [Fbk->NoF]: select a temp dir and filename that is diffrent than the one in php.ini

From: Date: Tue, 30 Dec 2014 10:41:14 +0000
Subject: Req #20344 [Fbk->NoF]: 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-189355@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: php-bugs@lists.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: Feedback +Status: No Feedback Type: Feature/Change Request Package: *General Issues Operating System: Any PHP Version: * Private report: N New Comment: No feedback was provided. The bug is being suspended because we assume that you are no longer experiencing the problem. If this is not the case and you are able to provide the information that was requested earlier, please do so and change the status of the bug back to "Re-Opened". Thank you. Previous Comments: ------------------------------------------------------------------------ [2014-04-16 16:48:56] levim@php.net 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? ------------------------------------------------------------------------ [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

« previous php.bugs (#189355) next »