• 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
File upload problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

File upload problem


  • Subject: File upload problem
  • From: Fabrice Pipart <email@hidden>
  • Date: Fri, 24 Jun 2005 17:43:53 +0200

Hi !

I have a problem concerning the upload of large files using WebObjects.

What I am trying to do :
(1) I want to upload an arbitrarily large file using WebObjects.
(2) I would also like to have a progress bar that monitors the progress of the upload.
(3) I would also like the user to be able to use the rest of the application during the upload.

What I have :
I tried many solutions to do that. The most obvious way to do this would be to have :
a WOFileUpload to actually upload the file (1) : it can handle arbitrarily large files if you use a DirectAction
a WOLongResponsePage for the progress bar (2)
a popup that contains the progress bar for the user to be able to use the rest of the application in his previous page (3)
I tried to find existing solutions but none worked fine. The best I found was this one : http://wocode.com/cgi-bin/WebObjects/WOCode.woa/1/wa/ShareCodeItem?itemId=306
But it does not work in all browsers and it is very complicated for a task that seems "quite simple".

The problems encountered :
I have two versions that does not work :(
The first one (available here : http://homepage.mac.com/easyshadow/.Public/UploadWithProgress.zip) does not have any popup. Unfortunately, when the WOLongResponse page reloads the InputStream we have raises a NullPointerException.
The second one (available here : http://homepage.mac.com/easyshadow/.Public/UploadWithProgress2.zip) has a popup. The transfer works (at least) but the WOLongResponse page never reloads... not very useful.


I would be VERY happy if anyone could help me with that.
I have been working on that for weeks and I still have not found any solution.

Does that come from a WO bug?
Is my design wrong?
Does anyone have a working solution for that?
I am currently looking at Ruby that seems to have a decent solution to do this but I would obviously prefer to have a 100% WO solution.


Thanks in advance !
If you have any question I would be glad to answer them.

Fabrice Pipart

www.icconsulting.mc

International Corporate Consulting
25, Boulevard de Belgique
MC - 98000 Monaco

T. +377 97982104 (direct)
F. +377 97708807


Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Re: binding trouble
  • Next by Date: Re: binding trouble
  • Previous by thread: Re: binding trouble
  • Next by thread: States and Country list...
  • Index(es):
    • Date
    • Thread