php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #20344 select a temp dir and filename that is diffrent than the one in php.ini
Submitted: 2002-11-10 14:48 UTC Modified: 2014-12-30 10:41 UTC
Votes:2
Avg. Score:3.0 ± 2.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: john at funnepa dot com Assigned:
Status: No Feedback Package: *General Issues
PHP Version: * OS: Any
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: john at funnepa dot com
New email:
PHP Version: OS:

 

 [2002-11-10 14:48 UTC] 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?

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-10-05 12:01 UTC] 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.
 [2014-04-16 16:48 UTC] levim@php.net
-Status: Open +Status: Feedback -Package: Feature/Change Request +Package: *General Issues -Operating System: any +Operating System: Any -PHP Version: 4.3.0-pre2 +PHP Version: *
 [2014-04-16 16:48 UTC] 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?
 [2014-12-30 10:41 UTC] php-bugs at lists dot php dot net
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.
 
PHP Copyright © 2001-2017 The PHP Group
All rights reserved.
Last updated: Sun Nov 19 01:31:42 2017 UTC