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 -> ASP

 ASP Upload - Now I can't get the file to "download"

Print topic Send  topic

Author Message
Shnokey

Posts: 7
Posted: 03/03/2004, 6:27 PM

Hello all - Noob here -

I have set up CodeCharge with the ASP upload piece with Persits Upload - I can get the file into a folder on the web server - and a reference in the database - - I used the "store" template - and added the "upload" piece to the "new product" table in the admin section - so you add a new product - you can upload a document (pdf) - now - how do I make a "products area" where you can click on a link and have the selected PDF download from the folder? I can search the "products" and I can sort the "products" but I can not create a link to click on and get the "pdf" file I uploaded with the product name and description. Seems like the upload piece it very intuitive - but to get the file has stumped me...

Three days of trying - going grey - any help would be most appreciated -

Thanks;-):-(
View profile  Send private message
DonB
Posted: 03/03/2004, 6:48 PM

Here's some code that I use to do it:

http://www.gotodon.com/ccbth/Features/Kbase.asp?find=download

Basically, it's a matter of sending it as a binary stream with a
content-type of "unknown". This keeps the browser from trying to handle it
itself.

--
DonB

http://www.gotodon.com/ccbth


"Shnokey" <Shnokey@forum.codecharge> wrote in message
news:6404693fc76ac2@news.codecharge.com...
> Hello all - Noob here -
>
> I have set up CodeCharge with the ASP upload piece with Persits Upload - I
can get the file into a folder on the web server - and a reference in the
database - - I used the "store" template - and added the "upload" piece to
the "new product" table in the admin section - so you add a new product -
you can upload a document (pdf) - now - how do I make a "products area"
where you can click on a link and have the selected PDF download from the
folder? I can search the "products" and I can sort the "products" but I can
not create a link to click on and get the "pdf" file I uploaded with the
product name and description. Seems like the upload piece it very
intuitive - but to get the file has stumped me...
>
> Three days of trying - going grey - any help would be most appreciated -
>
> Thanks;-):-(
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>

Shnokey

Posts: 7
Posted: 03/03/2004, 7:12 PM

Would you be so kind as to explain where I put that code - and how I can incorporate the code in the "grid Builder" - sorry for the simple questions - but my learning curve here is a bell - and i'm on the downslope..
View profile  Send private message
DonB
Posted: 03/03/2004, 7:46 PM

It depends on what you need. Possibly create a "your file is downloading"
page and put the code into the Before Show or that page. Possibly on a
button OnClick if you don't want the separate page.

In short, any event routine, at any suitable point in your application,
based on your design requirements.

--
DonB

http://www.gotodon.com/ccbth


"Shnokey" <Shnokey@forum.codecharge> wrote in message
news:640469ea7a298f@news.codecharge.com...
> Would you be so kind as to explain where I put that code - and how I can
incorporate the code in the "grid Builder" - sorry for the simple
questions - but my learning curve here is a bell - and i'm on the
downslope..
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>


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.

PHP Reports

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

Home   |    Search   |    Members   |    Register   |    Login


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