CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> .NET

 download link for a uploaded file

Print topic Send  topic

Author Message
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
View profile  Send private message
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
View profile  Send private message
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
View profile  Send private message
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
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.