Welcome Guest ( Log In | Register )

[ Standard ] · Linear+

> jscript question, display dialog box for selecting file

views
     
TSnazo
post Feb 23 2006, 10:01 AM, updated 15y ago

Getting Started
**
Junior Member
107 posts

Joined: Nov 2005
From: Kât Lởng Po


I`m sure u guys hav seen some web pages wher they let u upload files from the local machine to the server. They usually put a button that when u click on it, it brings up a dialog box for u to select a file to upload. Like when u want to upload yor avatar here on LowYat.

My question is, how do u bring up that open file dialog in jscript?
TheUrbNorm
post Feb 23 2006, 11:24 AM

On my way
****
Senior Member
557 posts

Joined: Apr 2005



u just need <input="file"/> no???
why need javascript???

but also ensure that the form element is a multipart/form-data

not sure whether this answer ur question or not

This post has been edited by TheUrbNorm: Feb 23 2006, 11:26 AM
TSnazo
post Feb 23 2006, 04:12 PM

Getting Started
**
Junior Member
107 posts

Joined: Nov 2005
From: Kât Lởng Po


thank u for the help. I thot i need some script to do it. silly me

 

Change to:
| Lo-Fi Version
0.0190sec    0.35    5 queries    GZIP Disabled
Time is now: 12th August 2020 - 08:01 PM