473,394 Members | 1,821 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

File Upload Status

2
I've written a PERL program that allows a user to upload a file, but it waits until the file has been completely loaded before it displays that it is complete. I have determined the size, and can print out the status (ie. 4096 bytes at 3%), but it doesn't display it until the file has completely loaded.

Is there anyway (I'm sure there is) to open a Javascript window that updates each increment of the process?
Jan 22 '07 #1
4 1917
AricC
1,892 Expert 1GB
I've written a PERL program that allows a user to upload a file, but it waits until the file has been completely loaded before it displays that it is complete. I have determined the size, and can print out the status (ie. 4096 bytes at 3%), but it doesn't display it until the file has completely loaded.

Is there anyway (I'm sure there is) to open a Javascript window that updates each increment of the process?
You want to open a new window? Wouldn't that open a ton of windows? While the file is uploading why don't you display Please Wait... or something?

Aric
Jan 22 '07 #2
dfrew
2
You want to open a new window? Wouldn't that open a ton of windows? While the file is uploading why don't you display Please Wait... or something?

Aric
I need something to let the user know that the upload is proceeding. If I just put up a message, it could be stopped and the user would still only see the message. If it popped up a new window, I was thinking of having the window display a progress bar that was being updated, and then it would close itself when it was done.
Jan 22 '07 #3
acoder
16,027 Expert Mod 8TB
Here is a Perl script that may be what you need.
Jan 22 '07 #4
Samji
23
You want to open a new window? Wouldn't that open a ton of windows? While the file is uploading why don't you display Please Wait... or something?

Aric
I think dfrew means, the text in the same window would be updated every percentage increment.

E.g. "25% done" then "26% done" in the same window.

I don't know very much about perl, but if you can access it via JavaScript, you could print out to a new window with the document.write() method.
Jan 24 '07 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: ShaSha | last post by:
Hi, I am trying to upload XML files via HTTP to an HTTP server from java client instead of browser. On the HTTP server side, there is a Perl script that will be receiving the incoming file and files...
13
by: Sky Sigal | last post by:
I have created an IHttpHandler that waits for uploads as attachments for a webmail interface, and saves it to a directory that is defined in config.xml. My question is the following: assuming...
2
by: Brian Henry | last post by:
I am uploading a file from the file input box (textbox with a browse button) but when you tell the file to upload the client doesn't see anything happen until its done uploading... I'd love to...
0
by: Benjamin Bittner | last post by:
Hallo NG, ive searched a lot in some google groups, and found many threads, but nothing that helped me. Here is the scenario: I have an aspx page which loads a user control in page.onInit like...
6
by: Marko Vuksanovic | last post by:
I am trying to implement a file upload progress indicator (doesn't have to be a progress bar) using atlas... I do realize that the indicator cannot be implemented using Update panel control, but is...
4
by: Ashok | last post by:
Dear Friends, How to download a file from server to client local pc without user intervention ie without the save as popup window. Can you give me step by step. Thanks
6
by: Vic Spainhower | last post by:
Hello, I am trying to do a FTP file upload which works fine on my localhost but on my ISP server it fails. I can't seem to find where I can go to find the specific cause of the failure. In both...
4
by: AshishMishra16 | last post by:
HI friends, I am using the Flex to upload files to server. I m getting all the details about the file, but I m not able to upload it to Server. Here is the code i m using for both flex & for...
3
by: siyaverma | last post by:
i am trying to upload csv file from user's computer to main server the code i am using is if(((isset($_GET)) && ($_GET=="yes")) ) { $typefield = $_GET; echo...
2
by: Amzul | last post by:
hello all i search the net for upload picture secure code i fuond this code, and affter i changed it abit it looks like that : <?php class image_upload { var $tmp_image; var...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.