Re: check size of upload file

2003-06-01 Thread R. Joseph Newton
Dan Muey wrote: > > Hi, > > > java is not good, because you can easily modify the source and I don't like that. > Who said anythign about java? Good point, especially since his comment also relate to Javascript [plain text] but not Java [byte code]. Neither one, when accessed through the web, is

Re: check size of upload file

2003-05-30 Thread anthony
Hi, actually what -s filepath does work!!, the error was in my sending form i misspelled enctype = "multipart/form-data" instead of doing multipart i wrote mulitpart. anthony -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: check size of upload file

2003-05-30 Thread Dan Muey
> Hi, > java is not good, because you can easily modify the source and I don't like that. Who said anythign about java? > thanx again, > Anthony -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: check size of upload file

2003-05-30 Thread anthony
Hi, java is not good, because you can easily modify the source and I don't like that. thanx again, Anthony -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: check size of upload file

2003-05-30 Thread Bob Showalter
anthony wrote: > Hi, > > when i upload a file to a website, I have the path > C:\\pathtofile\\pic.gif > to check the size I can do this > $size = -s $file_path; > but it does not work! > any help is appreciated, because i don't want people to upload file > to a website bigger that 500KB. > > Anth

RE: check size of upload file

2003-05-30 Thread Chris Rogers
The command works on my box. The problem may be that you are trying to get the size of a file that is located on the client's machine. I think you will have to check the size of the file after it is uploaded and then decide if it's too big or not. If you want to check the file size before upload