Login  
Search All Forums
Dart Home | PowerTCP WebServer for ActiveX | Custom Development Reply | PowerTCP WebServer for ActiveX Topics | Forums   
AuthorForum: PowerTCP WebServer for ActiveX
Topic: Progress Bar for WebServer POSTs of uploading files
paulc91316

From: Santa Clara, CA USA
Posts: 4
Member Since: 08/10/04
posted August 10, 2004 1:41 AM

I have built a small utility to upload files to our server using the code snippets below from your help files. Is there a way to see the progress (bar) of large files? THis works for files of any size, the issues is that for large files you can't tell if it's still working.

Thanks,
Paul

form method=POST ENCTYPE="multipart/form-data" action=""https://localhost/upload_doc">
 <tr><TD BGCOLOR='#FFFFFF' align=right>
  <B><FONT COLOR='#006666' SIZE='2' FACE='Verdana, Arial, Helvetica'>File to Upload *   </FONT></B></TD>
  <TD BGCOLOR='#FFFFFF'><input class="formfield" type="file" size="80" name="attach"></TD>
 </tr>
</form>


WebServer_Post....

   Case "/_upload_doc"
    'Call processUploadPost(Session, Request, Response)
    Dim file As DartStream
    For Each file In Request.Files
     file.DeleteOnDestroy = False
     'Save file in root directory
     file.FileName = WebServer.RootDirectory & GetFileName(file.FileName)  'GetFileName would remove the path from the filename
    Next
    SendStatusPage Request, Response, "Uploaded File Successfully!"
Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted August 10, 2004 8:47 AM

Where do you want the progress bar? On the server? If so, that is not something typically done on a server app, and as such was never designed into our server controls.
paulc91316

From: Santa Clara, CA USA
Posts: 4
Member Since: 08/10/04
posted August 10, 2004 11:57 AM

No - I want in on the Client. Any suggestions?
paulc91316

From: Santa Clara, CA USA
Posts: 4
Member Since: 08/10/04
posted August 10, 2004 12:03 PM

Actually I should be more specific. No scripts are allowed in this environment (for security). Even simple Javascript routines are not allowed in the HTML. The server's VB6 is really the only "code" allowed.

Thanks,
Paul
Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted August 10, 2004 12:04 PM

That would be independent from our product. It's more of a question for an ASP coders forum.


paulc91316

From: Santa Clara, CA USA
Posts: 4
Member Since: 08/10/04
posted August 10, 2004 12:06 PM

Thanks Tony.

Hmmph! We can't use ASP either. I'll just tell them to monitor the IE progress bar.
Reply | PowerTCP WebServer for ActiveX Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX