[PHP-DEV] Bug #10386 Updated: Uploaded files do not save.
ID: 10386 User Update by: [EMAIL PROTECTED] Old-Status: Feedback Status: Open Bug Type: HTTP related Operating system: Windows 2000 PHP Version: 4.0.4 Description: Uploaded files do not save. The problem was with my code. I didn't think to copy the files to a new location... I assumed they were handled differently. Sorry for the trouble :) Previous Comments: --- [2001-05-07 18:58:31] [EMAIL PROTECTED] If you're expecting uploaded files to stay there, that won't happen. Once the file has been uploaded and the script finishes running, PHP will remove the file (Hence 'upload_tmp_dir'). In order to keep the file, you need to copy it to another location. If you are already copying it somewhere, could you include a short, reproducible script that demonstrates the bug? --- [2001-04-21 15:46:17] [EMAIL PROTECTED] Just as another test, I tried changing the MAX_FILE_SIZE to a larger number (1) but it still failed to upload. I also double checked that Apache was running as Administrator... I can't figure this out for the life of me. --- [2001-04-18 17:25:07] [EMAIL PROTECTED] I am not sure where the fault lies here... (very possibly on me) All of the variables in $HTTP_POST_FILES are correct, yet the file doesn't actually save. I'm running PHP as Administrator, so I don't think it's a problem with permissions. My upload_tmp_dir is set to c:windowstemp and when I upload a file.. it does not appear there. I've also tried setting upload_tmp_dir to , windowstemp and checked $HTTP_POST_FILES[song][tmp_name] to be sure... still no luck. form action=? print($PHP_SELF); ? method=POST enctype=multipart/form-data table width=100% cellpadding=4 cellspacing=0 border=0 tr tdTitle: /td tdinput type=text name=title/td /tr tr tdArtist: /td td select name=artist ? print(artists_formatted()); ? /select /td /tr ... tr tdUpload: /td tdinput type=file name=song/td /tr /table input type=hidden value=upload name=do input type=hidden value=8192 name=MAX_FILE_SIZE input type=submit value=Upload --- Full Bug description available at: http://bugs.php.net/?id=10386 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #10386 Updated: Uploaded files do not save.
ID: 10386 Updated by: derick Reported By: [EMAIL PROTECTED] Old-Status: Open Status: Closed Bug Type: HTTP related Operating system: PHP Version: 4.0.4 Assigned To: Comments: User says it's a bug in his own code, so closing. Previous Comments: --- [2001-05-10 18:06:08] [EMAIL PROTECTED] The problem was with my code. I didn't think to copy the files to a new location... I assumed they were handled differently. Sorry for the trouble :) --- [2001-05-07 18:58:31] [EMAIL PROTECTED] If you're expecting uploaded files to stay there, that won't happen. Once the file has been uploaded and the script finishes running, PHP will remove the file (Hence 'upload_tmp_dir'). In order to keep the file, you need to copy it to another location. If you are already copying it somewhere, could you include a short, reproducible script that demonstrates the bug? --- [2001-04-21 15:46:17] [EMAIL PROTECTED] Just as another test, I tried changing the MAX_FILE_SIZE to a larger number (1) but it still failed to upload. I also double checked that Apache was running as Administrator... I can't figure this out for the life of me. --- [2001-04-18 17:25:07] [EMAIL PROTECTED] I am not sure where the fault lies here... (very possibly on me) All of the variables in $HTTP_POST_FILES are correct, yet the file doesn't actually save. I'm running PHP as Administrator, so I don't think it's a problem with permissions. My upload_tmp_dir is set to c:windowstemp and when I upload a file.. it does not appear there. I've also tried setting upload_tmp_dir to , windowstemp and checked $HTTP_POST_FILES[song][tmp_name] to be sure... still no luck. form action=? print($PHP_SELF); ? method=POST enctype=multipart/form-data table width=100% cellpadding=4 cellspacing=0 border=0 tr tdTitle: /td tdinput type=text name=title/td /tr tr tdArtist: /td td select name=artist ? print(artists_formatted()); ? /select /td /tr ... tr tdUpload: /td tdinput type=file name=song/td /tr /table input type=hidden value=upload name=do input type=hidden value=8192 name=MAX_FILE_SIZE input type=submit value=Upload --- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=10386edit=2 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #10386 Updated: Uploaded files do not save.
ID: 10386 Updated by: cardinal Reported By: [EMAIL PROTECTED] Old-Status: Open Status: Feedback Bug Type: HTTP related Operating system: PHP Version: 4.0.4 Assigned To: Comments: If you're expecting uploaded files to stay there, that won't happen. Once the file has been uploaded and the script finishes running, PHP will remove the file (Hence 'upload_tmp_dir'). In order to keep the file, you need to copy it to another location. If you are already copying it somewhere, could you include a short, reproducible script that demonstrates the bug? Previous Comments: --- [2001-04-21 15:46:17] [EMAIL PROTECTED] Just as another test, I tried changing the MAX_FILE_SIZE to a larger number (1) but it still failed to upload. I also double checked that Apache was running as Administrator... I can't figure this out for the life of me. --- [2001-04-18 17:25:07] [EMAIL PROTECTED] I am not sure where the fault lies here... (very possibly on me) All of the variables in $HTTP_POST_FILES are correct, yet the file doesn't actually save. I'm running PHP as Administrator, so I don't think it's a problem with permissions. My upload_tmp_dir is set to c:windowstemp and when I upload a file.. it does not appear there. I've also tried setting upload_tmp_dir to , windowstemp and checked $HTTP_POST_FILES[song][tmp_name] to be sure... still no luck. form action=? print($PHP_SELF); ? method=POST enctype=multipart/form-data table width=100% cellpadding=4 cellspacing=0 border=0 tr tdTitle: /td tdinput type=text name=title/td /tr tr tdArtist: /td td select name=artist ? print(artists_formatted()); ? /select /td /tr ... tr tdUpload: /td tdinput type=file name=song/td /tr /table input type=hidden value=upload name=do input type=hidden value=8192 name=MAX_FILE_SIZE input type=submit value=Upload --- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=10386edit=2 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]