Home > Archive > dBASE Web Applications > January 2006 > upload.prg & httpfiletransfer.cc









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 upload.prg & httpfiletransfer.cc
Frank J. Polan

2006-01-04, 8:23 pm

I'm trying to use Michael Nuwer's Upload.prg (slightly modified to
allow multiple uploads) & HTTPFIleTransfer.cc with apache for
uploading some DBF files

If the file is under 1mb it works fine. If the file is over 1mb it
seems to upload the file okay, but then it appears to hang and
eventually I get a msg about a server error.

Could this be some sort of server timeout or ???

Thanks

Frank Polan



Claus Mygind

2006-01-09, 7:23 am

Frank,

In your web apps are you using frames? When Mike first came out with this
utility, I started using it right away, although mostly the downloading.
When used in frames the application always hung up. After some discusssion
with Mike, I resorted to opening a second small separate window for the
process which resolved it. Not sure if this helps.

One other thing I had to fix in the utility, is the use of the quotation
marks. When our company moved to using FireFox as our browser, I found that
file names with blanks in the name where truncated when the download
dialouge box appeared. This was a small fix (see below). You may want to
detail the uploading section the same way.

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.


Frank J. Polan

2006-01-09, 9:23 am

Claus

No I'm not using frames, and haven't tried downloading anything yet.
I'll change the line you noted

Thanks

Frank Polan

On Mon, 9 Jan 2006 06:54:51 -0600, "Claus Mygind"
<cmygind@tsccorp.com> wrote:

>
>Frank,
>
>In your web apps are you using frames? When Mike first came out with this
>utility, I started using it right away, although mostly the downloading.
>When used in frames the application always hung up. After some discusssion
>with Mike, I resorted to opening a second small separate window for the
>process which resolved it. Not sure if this helps.
>
>One other thing I had to fix in the utility, is the use of the quotation
>marks. When our company moved to using FireFox as our browser, I found that
>file names with blanks in the name where truncated when the download
>dialouge box appeared. This was a small fix (see below). You may want to
>detail the uploading section the same way.
>
>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.
>
>



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