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

check MAX_FILE_SIZE

Hello,
I have a page that uploads a file. It has a form and uses SELF to
process the file the second time around.
I have MAX_FILE_SIZE set. The problem is, if the file is too big I
cant check $FILE['xx'][size] until it comes back.Which could be a
while.(which the server sets to 0).
I want to check it with javascript if possible.
If I try to upload a 20 gig file the customer wont know its too big
for hours.
Help
and Thanks

Oct 9 '07 #1
2 3457
Mike <am******@gmail.comwrote in news:1191959924.975852.149570
@v3g2000hsg.googlegroups.com:
Hello,
I have a page that uploads a file. It has a form and uses SELF to
process the file the second time around.
I have MAX_FILE_SIZE set. The problem is, if the file is too big I
cant check $FILE['xx'][size] until it comes back.Which could be a
while.(which the server sets to 0).
I want to check it with javascript if possible.
If I try to upload a 20 gig file the customer wont know its too big
for hours.
Help
and Thanks
how would you know the file size if it's not on the server yet?

to answer your javascript question in this non-javascript group, the answer
is no, you cannot do it via javascript either.

you could build a Flash file-uploader a-la Flickr
(http://www.flickr.com/photos/upload/) ... that might be the only way to do
what you want.
Oct 9 '07 #2
On 9 Oct, 20:58, Mike <ampel...@gmail.comwrote:
Hello,
I have a page that uploads a file. It has a form and uses SELF to
process the file the second time around.
I have MAX_FILE_SIZE set. The problem is, if the file is too big I
cant check $FILE['xx'][size] until it comes back.Which could be a
while.(which the server sets to 0).
I want to check it with javascript if possible.
If I try to upload a 20 gig file the customer wont know its too big
for hours.
Help
and Thanks
You can limit POST size on Apache (and presumably other webservers
too)

C.

Oct 10 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

17
by: Craig Bailey | last post by:
Someone please explain what alternate universe I fell into this afternoon when PHP started telling me that 2 doesn't equal 2. Not sure about you, but when I run this, it tells me 59001.31 doesn't...
1
by: bongoman | last post by:
Hi there I'm working with file uploads and PHP. My upload form has a hidden input with a MAX_FILE_SIZE name. I'm curious how to error handle when this lmit is exceeded. What is the best way...
3
by: Bob Bedford | last post by:
Until now, the MAX_FILE_SIZE directive wasn't taken when uploading files. Since 2-3 days, the browser (IE6) doesn't seem to send files bigger than MAX_FILE_SIZE. The limited action seems to be...
7
by: Tony Johnson | last post by:
Can you make a check box very big? It seems like when you drag it bigger the little check is still the same size. Thank you, *** Sent via Developersdex http://www.developersdex.com ***...
1
by: scprosportsman | last post by:
Please help guys, i am trying to set up a database here at work and im fairly new to access in terms of writing functions and queries and stuff. I have 2 different places on my design that will...
2
by: yonthebeach | last post by:
hi, i have an upload mechanism on my website and want to check the filesize on the client size. is this possible? thanks yavuz bogazci
4
by: taras.di | last post by:
Does the hidden field MAX_FILE_SIZE have any effect on a file submission that is too large (on the client side)? The PHP manual at http://cn.php.net/manual/en/features.file-upload.php suggests...
5
by: starke1120 | last post by:
Im creating a check in – check out database for RF guns. I have a table that contains models. ID (primary key) Model A table that contains Gun Details ID (primary key) Model_id...
23
by: guile | last post by:
hi, I tried to lookup on w3c website for information on the MAX_FILE_SIZE hidden field to restrict the size of file uploads, but couldn't find much. Looked up elsewhere, but generally, couldn't find...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
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: 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...

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.