CodeCharge Studio
search Register Login  

Web Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> General/Other

 Download uploaded file

Print topic Send  topic

Author Message
adorni

Posts: 120
Posted: 06/14/2010, 12:07 PM

When i upload a file with "File Upload" form option, in the database put the filename. When i download the file... how i can a prefix to the filename in the database?

In the database i have in the field "file" , "XXX.EXE"

Hay i can put a link with "C:\FILES\XXX.EXE"

Or... how i can upload file and in the database save the filename with the path...

Thanks!
View profile  Send private message
mamboBROWN


Posts: 1713
Posted: 06/15/2010, 5:02 PM

adorni,
If you are storing the name of the file in a database table there are a number of ways you could do it. I will give you two ways: 1. You could concat the path location to the file name in the database and display it as a link (in a MySQL query) or 2. you could pull the name from the database and add the directory path to the file name before you display it by using PHP string concatenation.
View profile  Send private message
adorni

Posts: 120
Posted: 06/16/2010, 4:40 AM

Thanks. In option TWO... how i can using PHP string to add the path? And... i add "c:\+FILE"... in intranet i will be add "\\SERVER\+file" but... in internet...???

THanks and sorry for my ignorance!
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.

Web Database

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.