Home > Archive > dBASE Web Applications > January 2006 > HTTPFileTransfer.cc fix









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author HTTPFileTransfer.cc fix
Claus Mygind

2005-11-18, 11:23 am

I came across a small problem with the execellent utility by Micheal Nuwer.
This is a quick utility that allows you to build in file transfers to your
web pages.

Anyway the problem occurs when you have file names with spaces in them ie:
My File.doc.

This is not a problem when using IE but if you are using FireFox the file
name will be truncated to My.

For a better explantion go to this link
http://kb.mozillazine.org/ Filename...br /> _download

The fix is very easy however.
1. Open HTTPFILETRANSFER.CC
2. change the delimiters as follows
Exiting Line:
this.fOut.puts("Content-Disposition: attachment;
filename="+cFilename)
Revised Line:
this.fOut.puts('Content-Disposition: attachment;
filename="'+cFilename+'"')
3. Compile this .cc and any app that references this app and your done.

In other words simply change the existing double quotes to single, then add
closing qoutes after the cFilename variable.


Dan Barbaria

2006-01-10, 8:23 pm


"Claus Mygind" <cmygind@tsccorp.com> wrote in message
news:xquE9pF7FHA.1184@news-server...
>I came across a small problem with the execellent utility by Micheal Nuwer.
>This is a quick utility that allows you to build in file transfers to your
>web pages.
>
> Anyway the problem occurs when you have file names with spaces in them ie:


What about a file name like Dan's File.doc. ?

Dan B


Sponsored Links





Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive | Programming forum archive

Copyright 2008 droptable.com