Preserved Topic: Image size in "input type=file" (Page 1 of 1) |
|
---|---|
Maniac (V) Mad Scientist From: Azylum's Secret Lab |
posted 09-10-2002 09:33
IS it possible to know the size of an image in an <input type=file name=img1 size=30>? |
Paranoid (IV) Inmate From: Sthlm, Sweden |
posted 09-10-2002 10:17
As in size, do you mean dimensions (height and width) or do you mean filesize? |
Maniac (V) Mad Scientist From: Azylum's Secret Lab |
posted 09-10-2002 10:33
Cool! |
Lunatic (VI) Mad Scientist From: Massachusetts, USA |
posted 09-10-2002 13:05
No, I'm pretty sure you can't get any information about the file from Javascript. |
Maniac (V) Mad Scientist From: Azylum's Secret Lab |
posted 09-10-2002 13:37
Period. |
Paranoid (IV) Inmate From: 127.0.0.1 |
posted 09-10-2002 14:38 |
Paranoid (IV) Mad Scientist From: Somewhere over the rainbow |
posted 09-10-2002 14:47
The poster has demanded we remove all his contributions, less he takes legal action. |
Paranoid (IV) Inmate From: Sthlm, Sweden |
posted 09-10-2002 14:59
Woops... I guess you can after all code: function imagesCheck(){
|
Lunatic (VI) Mad Scientist From: Massachusetts, USA |
posted 09-10-2002 15:03
Wow, interesting. Generally you can't do much with the <input> element with javascript, since it opens the user's computer up to security risks. |
Maniac (V) Mad Scientist From: Azylum's Secret Lab |
posted 09-10-2002 15:15
I got to this: code: function verfoto() {
code: <INPUT id=archivo type=file onchange=verfoto() size=65 name=archivo>
|
Paranoid (IV) Mad Scientist From: Somewhere over the rainbow |
posted 09-10-2002 15:27
The poster has demanded we remove all his contributions, less he takes legal action. |
Paranoid (IV) Mad Scientist From: Somewhere over the rainbow |
posted 09-10-2002 15:44
The poster has demanded we remove all his contributions, less he takes legal action. |
Maniac (V) Mad Scientist From: Azylum's Secret Lab |
posted 09-10-2002 15:50
I was making exactly that: code: function verfoto() {
|
Paranoid (IV) Mad Scientist From: Somewhere over the rainbow |
posted 09-10-2002 15:58
The poster has demanded we remove all his contributions, less he takes legal action. |
Maniac (V) Mad Scientist From: Azylum's Secret Lab |
posted 09-10-2002 16:19
I have Opera 5.12 and Mozilla 1.01 (.01? I don't want to open it again please!) and does not work neither in Mozilla nor Opera.... |
Paranoid (IV) Mad Scientist From: Somewhere over the rainbow |
posted 09-10-2002 16:21
The poster has demanded we remove all his contributions, less he takes legal action. |
Maniac (V) Mad Scientist From: Azylum's Secret Lab |
posted 09-10-2002 16:28
When I made the test, I made it with a valid mage.... |