• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Need some ideas for a WO file upload app
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Need some ideas for a WO file upload app


  • Subject: Re: Need some ideas for a WO file upload app
  • From: Jonathan Rochkind <email@hidden>
  • Date: Thu, 17 Jul 2003 12:56:11 -0500

I don't think so. It's not a WO issue, it's an HTML Issue. The WOFileUpload produces an HTML file input widget. The file input widget allows the user to choose a file, but then will cause the file to be uploaded on form submit. Which means after the user selected the file, in order to submit that file so it can be 'listed', the user would have to upload the whole file, and wait for it to be uploaded before proceeding, which is not what you asked for. As far as I know, that file input widget is the only thing in HTML/Javascript that will allow the user to select a local file.

Let's say you could use a javascript hack to allow the user to select the local file, and then send that file path to the server WITHOUT actually sending the entire file. This may be possible, using javascript to examine the file specified in the file input widget, but then copy the path to another form as a string, and submit that form without uploading the file. I'm not sure if that's possible. But even if it was.... okay, your server app now has a list of a bunch of file paths (on the users local machine). Now the user clicks a button which is supposed to mean "okay, now upload all of these files". How the heck would you make this work? Hmm, maybe there is a way, possibly using some fancy javascript. I'm not sure.

So maybe it is possible, using some very fancy javascript. But it's not a WO issue, it's an issue of how to get HTML/Javascript to do what you want. If you can do it at all, if you can do it using any software for the web at all, then you can it in WO. But I'm not sure whether or not you can do it at all. It'd be tricky.

--Jonathan

At 12:58 PM 7/17/2003 -0400, Richard L. Peskin wrote:
I need to do a WO app that has the ability to upload multiple files
without requiring the user to specify the number of files in advance.
(Traditional HTML approaches have the user specify the number of files
and then an appropriate form is built.) The WO file upload example has
several WOFileUpload elements in a WOForm. I would like to have the
user press a WOFileUpload button, choose a file, see that file listed
and repeat the process until the submit. Can this be done in WO without
resort to client-side Java?
thanks,
--dick peskin




Richard L. Peskin, RLP Consulting, Londonderry, VT
http://www.rlpcon.com
http://www.caip.rutgers.edu/~peskin
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Need some ideas for a WO file upload app (From: "Richard L. Peskin" <email@hidden>)

  • Prev by Date: Re: Can't modify EO objects! ARGH! =(
  • Next by Date: Re: Can't modify EO objects! ARGH! =(
  • Previous by thread: Need some ideas for a WO file upload app
  • Next by thread: Re: Need some ideas for a WO file upload app
  • Index(es):
    • Date
    • Thread