Re: maybe OT: uploading files w/ cgi

From: Paul Lalli (mritty_at_gmail.com)
Date: 07/21/04


Date: Wed, 21 Jul 2004 13:54:02 -0400

On Wed, 21 Jul 2004, darius wrote:

> Hello,
>
> I am trying to write a script that displays (with hypertext links) the names
> of every file in a certain directory. I have finished the directory listing
> part (and appropriate html), but what I need to do now is be able to upload
> files and allow them to be downloaded by others.
>
> Currently, I am able to upload the files to the desired folder...but I am
> not able to view them online as I am able to do with the files in the folder
> I put there originially. The ownership of the files is different, but when I
> manually change them it doesn't seem to make much of a difference. Although
> I see the new file's name on my page, when I click on its link, I get
> "Object not found!...Error 404".
>
> Does anyone know what is different about the files I upload and the ones I
> create on the server myself?

404 means "no such file exists at this location", not "you don't have
permission to see this file". The two possibilities are
1) The files are not located where you think they are.
2) The links you are generating are not pointing to where you think they
are.

My initial guess would be that you're not uploading the files as correctly
as you think you are. Without any code to look at, however, there's no
way to be sure.

Paul Lalli



Relevant Pages

  • maybe OT: uploading files w/ cgi
    ... I am trying to write a script that displays (with hypertext links) the names ... I have finished the directory listing ... I am able to upload the files to the desired folder...but I am ...
    (comp.lang.perl.misc)
  • Re: Very basic HTML question
    ... Directory listing would show the contents of your web ... space at NTL, and would show any files you have uploaded there. ... and upload it to your webspace. ...
    (uk.comp.sys.mac)
  • Re: Very basic HTML question
    ... Directory listing would show the contents of your web ... you want every file in that folder to ... name 'htaccess' (no quotes). ... Step 3 - Use your ftp program to upload this file to the ...
    (uk.comp.sys.mac)
  • Re: FTP/SCP/SFTP uploading - restrict access
    ... >> chmod 270 upload ... >> If you want them to be able to check a filename if they know the filename ... directory listing then they know what the other files are. ... permission as the file was being written. ...
    (comp.os.linux.misc)
  • Re: automated upload with PHP
    ... have your script one once per day and upload any images not already ... tiffs and the php script, ... // request local file read permission ...
    (comp.lang.php)