|
|
|||||||
| Register | Bookmark Us! | Forum Rules | FAQ | Donation | Members List | Calendar | Online Quizzes | Arcade | Search | Today's Posts | Mark Forums Read |
| Notices |
| Gadgets and the Internet Want to talk about gadgets, software, neat widgets or cool stuff on the web? Then post it in here. |
|
|
Thread Tools | Display Modes |
|
|
#1 (permalink) | ||||||||
|
Moderator
|
Hope someone here can help me...
I am in the process of developing a website for somebody.... One of the requirements is that Photo's can be uploaded to the server... I want to restrict users to 100 K image sizes... I have written A javascript function that utilises the windows File System Object (see below)... this works but obviously this has a number of problems... Firstly most Internet browsers will in general block this script unless activex downloads are enabled in the browser, secondly, unless the user is running windows, this wont work either... what is the best way to do this???? Ta, Clive. function check_file() { var path=document.form.photo.value; var fso = new ActiveXObject("Scripting.FileSystemObject"); fileObj = fso.GetFile(path); if(fileObj.size>'100') { alert ("File is too big (Max 100kb). Please reduce image size before uploading"); return 0; } } | ||||||||
|
To err is human. To ARRR is pirate.
|
|||||||||
|
|
|
|
|
#2 (permalink) | ||||||||
|
Moderator
|
Have you considered using PHP Gallery software :?: This one is great http://gallery.menalto.com/ and I think it plugs into other stuff such a PHPBB, POSTNUKE and CMS stuff ;-)
| ||||||||
|
TheGuru
|
|||||||||
|
|
|
|
|
#3 (permalink) | ||||||||
|
Moderator
|
Hi thanks for the reply... sorry I haven't replied sooner...
I can't use the php stuff as the site is running on a windows server platform, using ASP and MS SQL Server 2000... BUT I have googled and there are ASP scripts available that will probably do the same thing I'm looking for... will try some out and If I don't come right, will whinge and moan and ask for help again Thanks Clive. | ||||||||
|
To err is human. To ARRR is pirate.
|
|||||||||
|
|
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|