LimMH
asked on
php file upload using http://valums.com/ajax-upload/
Hi
I noted that quite a few in this forum recommend this site for file uploading.
I download this and wanted to know more on how to make modification.
My project is in php and mysql
First thing - using the demo from the client folder.
I can click on the browse button, select a file and it shows uploaded but I could not find the uploaded file.
Qns:
1) where is the file uploaded to?
2) how and where in the code should I modify if I want to upload the file to a specific folder?
3) where can I modify the code if I want to update a mysql table with the filename of the uploaded file upon successful uploading.
4) where can I modify the code if I want to trigger an ajax call once uploading is successful
I dont seems to be able to find a full working sample (with codes) and explanation.
Hope someone can offer me a sample code with the above qns.
Thanks.
I noted that quite a few in this forum recommend this site for file uploading.
I download this and wanted to know more on how to make modification.
My project is in php and mysql
First thing - using the demo from the client folder.
I can click on the browse button, select a file and it shows uploaded but I could not find the uploaded file.
Qns:
1) where is the file uploaded to?
2) how and where in the code should I modify if I want to upload the file to a specific folder?
3) where can I modify the code if I want to update a mysql table with the filename of the uploaded file upon successful uploading.
4) where can I modify the code if I want to trigger an ajax call once uploading is successful
I dont seems to be able to find a full working sample (with codes) and explanation.
Hope someone can offer me a sample code with the above qns.
Thanks.
ASKER
Hi,
thank you for the comment. I know of moving the file via php function. But I do not know where is the uploaded file located for me to be moving that file to the specific folder I wanted.
I noted in the php.ini that it says temp upload folder to be c:\windows\temp folder but I could not find the uploaded file in that folder.
Thus I am unsure if the file is actually uploaded bec maybe the demo.html script in http://valums.com/ajax-upload/ is not complete (ie it show the proccess of uploading but it doesn't really upload a file??)
Thus asking for user with experienced using http://valums.com/ajax-upload/ for assistance and more info.
Thanks
thank you for the comment. I know of moving the file via php function. But I do not know where is the uploaded file located for me to be moving that file to the specific folder I wanted.
I noted in the php.ini that it says temp upload folder to be c:\windows\temp folder but I could not find the uploaded file in that folder.
Thus I am unsure if the file is actually uploaded bec maybe the demo.html script in http://valums.com/ajax-upload/ is not complete (ie it show the proccess of uploading but it doesn't really upload a file??)
Thus asking for user with experienced using http://valums.com/ajax-upload/ for assistance and more info.
Thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Got the ans after much seaching
http://php.net/manual/en/function.move-uploaded-file.php
http://www.php.net/manual/en/features.file-upload.php