dikmus
Posts: 19
|
| Posted: 03/02/2006, 6:52 AM |
|
Hi,
I used the upload component to put some files in a given folder. Thes was easy. But now I need to make a download link.
Because the uploadet files have this date-time prefix given by the upload component, the download link does not work.
- What is the code I need to get the download link working.
- And the same question for showing uploaded pictures in a form.
_________________
www.musit.nl |
 |
 |
peterr
Posts: 5971
|
| Posted: 03/02/2006, 2:03 PM |
|
The filename are stored in the database, thus you would need to create a link that uses that database field as the URL.
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com |
 |
 |
welcome
|
| Posted: 03/02/2006, 9:32 PM |
|
Hi,
I used the upload component to put some files in a given folder. Thes was easy. But now I need to make a download link.
Because the uploadet files have this date-time prefix given by the upload component, the download link does not work.
- What is the code I need to get the download link working.
- And the same question for showing uploaded pictures in a form.
_________________
www.musit.nl
|
|
|
 |
peterr
Posts: 5971
|
| Posted: 03/02/2006, 10:06 PM |
|
Please see my answer above. Since the filenames are stored in the database you don't need any code or do anything else. You would just display the link from the database. The same with showing pictures.
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com |
 |
 |
dikmus
Posts: 19
|
| Posted: 03/03/2006, 3:16 AM |
|
Hi peter,
Dont know how my message turned up twice, but never mind
I took a better look at my problem. And the problem of not being able to downlaod a file was not the file renaming by the upload component but some kind of security. What is the case:
I am working in a local host test enviroment
When I make a download link to a file that i put in a virtual directory myself, I can download it by clicking on the link on the web page.
When i link to af file that I uploaded with the upload component, I get a access denied message.
Any suggestions what caused this? Or am I the only one and is it something I have to investigate in my own settings?
Thanks Dik
_________________
www.musit.nl |
 |
 |