Jump to content

Recommended Posts

When the files upload they all go to one folder.  So I would like the download to only come from that folder specifically.

 

I will only be able to access this through the web address.

 

I have created a table that holds the file name that pertains to an ID  I will only display the link that pertains to that ID so not every file in the folder is being shown.  That link will download that file to the users HD.

 

Is this enough detail??

OK, I have made a link that will allow me to right click and save link as, and will work correctly, however the file I am testing with is a text file and if I left click on the link it just opens the text on the screen.  I was looking for it to ask to save to the users HD

Alright, I have everything going as planned now when I have a static path to the file I would like.  However I would like the file that is displayed to be the one that downloads.

 

echo  '<td rowspan = "2"><font face="Arial" size="2"><a href="' . '/uploads/' .'">'.  $attach .'</td>';

 

is what I have and the correct file is displayed as the link, however, if I leave it like this the display on the page offers all of the files inside of the uploads directory.

 

When I put /uploads/$attach it tells me that it isn't a valid file, which is true, but is it possible to use a variable here?  or is there something else that I am going to have to do??

 

Thanks

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.