Jump to content

Uploads appear on server, but cannot be viewed online?...


Recommended Posts

I'm sure this is an easy question for anyone who deals with file uploads, but I am doing this for the first time...

 

I have a basic file-upload form.  I tested it locally, and it puts files to the local folder that it is supposed to.  I can then launch those uploaded files on my computer from that local folder...

 

I put the PHP page on my webserver, and when I upload a file I can log into my FTP site and see that it is there online.  However, when I type the URL in an internet browser to launch it, I just get a dead-link page.  So, for example, I will SEE the following file in my FTP program when I log onto my server:

 

www.mywebsite.com/uploads/MyUploadedFile.doc

 

But when I actually type that URL into a browser, I get nothing.  Even odder than that is the fact that if I just manually file-transfer a file (using the FTP program) to that same directory, it works fine!...

 

Any ideas?  Thanks!...

 

 

maybe theres packet-loss between you and the server. The file is getting corrupted and does not understand how to open it so it displays a dead link?

 

I just tried logging into my FTP server.  I went into the folder where the uploaded file was, and I pulled it down into a new folder on my local hard drive.  It opened up fine.  This makes no sense!...

 

Here's the link to the form for you to test yourself:

http://www.shootingblanks.net/TEMP/php/uploading/upload_form.php

 

Here's the link to the file (that for some reason is coming up dead):

http://www.shootingblanks.net/TEMP/uploads/AtTheOffice.jpg

 

Thanks.

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.