| | |
File doesn't upload into the directory I specified. Need help!
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Jan 2007
Posts: 37
Reputation:
Solved Threads: 3
I've been testing on uploading files and I encountered a weird bug while testing it out because on the initial uploading of the file, my localhost uploads it to the root directory of my xampp rather than in the directory inside my htdocs folder. To make things clear here's what happened.
1.) I upload my file from a page in http://localhost/fileupload/upload.html, which is equivalent to my "C:\xampp\htdocs\fileupload" directory.
3) After the initial upload the file is stored in the "C:\xampp" folder instead of the fileupload folder mentioned above.
4) I tried uploading again, that's when it stores the uploaded files to my uploaded folder.
5) When I deleted the copy on the "C:\xampp" folder and uploaded the file again, it's there again and it didn't replace the copy on the "C:\xampp\htdocs\fileupload" directory.
From this, I deduced that if it doesn't see a copy of a file in the "C:\xampp" directory, the upload goes there. If the file exists, that's the only time it uploads it to the same directory as my page. Is this a config issue or a security issue? Can anyone shed some light on this matter?
Thanks,
Joni
1.) I upload my file from a page in http://localhost/fileupload/upload.html, which is equivalent to my "C:\xampp\htdocs\fileupload" directory.
3) After the initial upload the file is stored in the "C:\xampp" folder instead of the fileupload folder mentioned above.
4) I tried uploading again, that's when it stores the uploaded files to my uploaded folder.
5) When I deleted the copy on the "C:\xampp" folder and uploaded the file again, it's there again and it didn't replace the copy on the "C:\xampp\htdocs\fileupload" directory.
From this, I deduced that if it doesn't see a copy of a file in the "C:\xampp" directory, the upload goes there. If the file exists, that's the only time it uploads it to the same directory as my page. Is this a config issue or a security issue? Can anyone shed some light on this matter?
Thanks,
Joni
Last edited by jblacdao; Jan 26th, 2007 at 12:14 am. Reason: title missing one word XD
![]() |
Similar Threads
- uploaded file moving to new directory (PHP)
- How to upload a file in PHP ? (PHP)
- upload file (PHP)
- vBulletin mod_rewrite (PHP)
- [Revised] vBulletin Mod_rewrite Tutorial (PHP)
- How I removed hotoffers.info (Viruses, Spyware and other Nasties)
- Batch file for renaming extensions (Windows NT / 2000 / XP)
Other Threads in the PHP Forum
- Previous Thread: watermark png no resize
- Next Thread: PHP Problem
| Thread Tools | Search this Thread |
apache api array beginner binary body broken cakephp checkbox class cms code computing cron curl database date date/time delete display dynamic echo email error file files filter folder form forms function functions gc_maxlifetime global google host href htaccess html image include insert ip javascript joomla limit link list login mail memmory memory menu mlm msqli_multi_query multiple mycodeisbad mysql navigation oop parameter parsing paypal pdf php problem query radio random recourse recursion regex remote script search seo server sessions sms snippet source space sql static syntax system table thesishelp tutorial update upload url validator variable video web webdesign wordpress xml youtube





