473,396 Members | 1,827 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,396 software developers and data experts.

Find out the size of uploaded file on client side

Hi can anyone tell me how to find the size of an uploaded file on client side this should be done without using ActiveX controls
Sep 10 '07 #1
5 2068
acoder
16,027 Expert Mod 8TB
If the file is already uploaded, the server-side script should have the uploaded file size. How are you uploading the file?
Sep 10 '07 #2
acoder
16,027 Expert Mod 8TB
Removed "urgent" from the thread title. This makes it less urgent and less likely that someone will answer it.
Sep 10 '07 #3
Removed "urgent" from the thread title. This makes it less urgent and less likely that someone will answer it.

sorry i have'nt noticed that thanks for remaining
Sep 10 '07 #4
If the file is already uploaded, the server-side script should have the uploaded file size. How are you uploading the file?

using jsp servlet the file is uploaded.
Sep 10 '07 #5
acoder
16,027 Expert Mod 8TB
using jsp servlet the file is uploaded.
The JSP servlet should have code that determines the file size. When the page is loaded, generate Javascript code with a variable which contains the file size.
Sep 10 '07 #6

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

Similar topics

2
by: vishal | last post by:
hi is there anyway that i can check the size of file on client side before uploading file to server???? suppose the user uploads file of 10 mb then the server will know the size is 10 mb...
1
by: Antonie C Malan Snr | last post by:
Dear All, I tried posting this before, but it seems to have disappeared. I need to check image sizes before the user uploads them. This works in the Mozilla family on second and subsequent...
4
by: msuk | last post by:
All, I have a ASP.NET page using C# to upload a file to a server via the filefield control. I would like to restrict the size of the file a user can upload to say 1mb but would like to check...
12
by: Phil Z. | last post by:
After migrating an ASP.NET 1.1 application to 2.0 we were getting "Cannot access a closed file" errors when uploading. I found a number of post on the subject and have since moved from using an...
19
by: jeremyz | last post by:
Hi all, I am not a developer, but I work with several and am posting this for them. We are trying to determine whether it is possible to check the size of a file before a user uploads it. ...
2
by: asiva | last post by:
I am using <INPUT id="File1" type="file" name="File1" runat="server"to upload file to the server. My Questions: 1. Is it possible to check the file size before the file is uploaded other than...
4
by: ramadeviirrigireddy | last post by:
Hi can anyone tell me how to find the size of an uploaded file on client side this should be done without using ActiveX controls
2
by: =?Utf-8?B?TWlrZSBLcmFsZXk=?= | last post by:
In my ASP.NET application, I'd like to set limits on the maximum size of an uploaded file. Normally I'd just set the maxRequestLength of the httpRuntime element in web.config. But in this case,...
6
by: rodmc | last post by:
Hi, Is there a way to get the size of a file on a remote machine before it is uploaded? I would like to write some form of status counter which is updated as a fie is uploaded, and also to use...
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:
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
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.