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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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

Pull Requests

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-2024 The PHP Group
All rights reserved.
Last updated: Fri Dec 13 01:01:28 2024 UTC