Click here to Skip to main content
15,901,505 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I am trying to make a very simple uploader on a website. The website will be public when published but the upload tool won't be so i have used the PHP file upload tutorial from http://www.tizag.com/phpT/fileupload.php[^] to make this uploader.

The tutorial does show me how to make files upload to the server in a folder called 'uploads' but how do i get the uploaded files from the 'uploads' folder appear on a page on the website automatically? (e.g. page name: Uploads.html)

Thanks to anyone who responds in advance

Hamza
Posted

1 solution

If the upload control is being used within an iframe on the upload.html page then you would need to trigger a JavaScript method on that page to refresh after the upload has occurred. You can use the parent object from the iframe to obtain a reference to the upload.html page.
 
Share this answer
 
Comments
hamza_786 15-Apr-12 12:33pm    
The upload control is written in a different file called 'uploader.php'. It's only the interface that is shown on 'upload.html' but i want the uploaded file to be shown on 'uploads.html'. So how would go about doing this. This is the first time i'm doing such a project so i am very confused.
[no name] 15-Apr-12 13:03pm    
Read the solution again the answer is there.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900