The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Control to select multiple image files to upload?
nmduc073
post Aug 23 2007, 10:26 PM
Post #1


Member
***

Group: Members
Posts: 42
Joined: 20-June 07
Member No.: 3,137



Hi,
I need to write a control to upload the pictures. When user browses to select the pictures on the local computer, it allows you to select multiple files. Can you tell me how I can do it, please? I think it might be Java applet or somethings like that. .NET controls might be difficult to select multiple files.

Thank in advance,
Duc
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Brian Chandler
post Aug 23 2007, 10:53 PM
Post #2


Jocular coder
********

Group: Members
Posts: 2,460
Joined: 31-August 06
Member No.: 43



"Control" is emasculated M$-ese for a "widget", I suppose...

Anyway, there are no widgets in html, really, just form elements; and the file selection has to be done by the user, for obvious security reasons, so you don't need to, and indeed can't do anything about it.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
nmduc073
post Aug 23 2007, 11:18 PM
Post #3


Member
***

Group: Members
Posts: 42
Joined: 20-June 07
Member No.: 3,137



You might misunderstand me. The selection is certainly done by user. This user control's functionality should look like Windows Explorer which user can select multiple files.

This post has been edited by nmduc073: Aug 23 2007, 11:19 PM
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Brian Chandler
post Aug 24 2007, 12:17 AM
Post #4


Jocular coder
********

Group: Members
Posts: 2,460
Joined: 31-August 06
Member No.: 43



QUOTE(nmduc073 @ Aug 24 2007, 01:18 PM) *

You might misunderstand me. The selection is certainly done by user. This user control's functionality should look like Windows Explorer which user can select multiple files.


If I understand correctly now, this is a MS-Windows programming issue, then? Nothing to do with html, really, let alone server-side scripting? Perhaps you need to try an MS-Windows programming forum?

Or perhaps, as you say, you hope to write a Java applet, that you include in the page, and it just handles the file upload? (Ah, how "convenient"... M$-thinking at its purest!) Well, basically you can't, because I the archetypal user don't trust your (or anyone else's) website with access to my file system. Here's a sample page about this:

http://www.duckware.com/applets/reference.html (section 2: Security)

HTH
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
nmduc073
post Aug 24 2007, 01:02 AM
Post #5


Member
***

Group: Members
Posts: 42
Joined: 20-June 07
Member No.: 3,137



Thank you for reply. happy.gif
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Darin McGrew
post Aug 24 2007, 11:23 AM
Post #6


WDG Member
********

Group: Root Admin
Posts: 8,365
Joined: 4-August 06
From: Mountain View, CA
Member No.: 3



A more robust approach is to have a submit button on the original form that adds another file input element. The server-side program returns another copy of the form, this time with an additional file input element.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Aug 24 2007, 12:09 PM
Post #7


🌟Computer says no🌟
********

Group: WDG Moderators
Posts: 20,730
Joined: 9-August 06
Member No.: 6



Why not have several INPUT type="file" from start? The way many "file managers" have it.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
DenialWhite
post Nov 11 2008, 06:09 PM
Post #8





Group: Members
Posts: 1
Joined: 11-November 08
Member No.: 7,087



Check Ajax Uploader.

It allows you to select multiple files and upload multiple files at once.

http://ajaxuploader.com/Demo/select-multip...les-upload.aspx
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 25th April 2024 - 02:22 AM