ERAttachment / multiple file upload questions
Hello! We’d like to add multiple file upload capabilities to our app. Looking around, it seems Wonder has an ERDragAndDropUpload component that does that. However, it looks like it’s dependent on also using ERAttachment. We’ve been using our own Attachment class since before ERAttachment existed, so I’m not sure how it could be integrated at this point. On top of that, it looks like some of the documentation for ERAttachment is currently unavailable. (I can’t get to the Overview or the tutorial movie linked from <https://wiki.wocommunity.org/display/documentation/ERAttachment+Framework>). So I guess I have a multiple part question. Is ERDragAndDropUpload the best way to go nowadays for implementing drag and drop multiple file uploads? If so, is it, or maybe ERAttachment, flexible enough that I can get the uploaded files and save them in our own Attachment class? Finally, if that might be possible, are there live links out there to some of the documentation? Thanks in advance! Regards, Mark ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: d2w file upload help
Hi Ted, With the caveat that I don’t use ERAttachment in a D2W setting... On 22 Nov 2016, at 10:52 PM, Theodore Petroskywrote: > I have a ERAttachment relationship and I am upload assets. I need to upload > .zip files and process them after they arrive. I need to unzip them. the > contents of the zip is a webpage (index.html and images). Hopefully, I can > unzip the file, and provide a link to this folder to view the webpage. > > The filesystempath of erattachment looks like this: > > /clientFiles/attachments/b/8/5/5.zip > > if I end up with > > /clientFiles/attachments/b/8/5/5 > > as a directory, I should be able to create a link to that folder. > > or am I barking up the wrong tree? I think you might be barking up the wrong tree. ERAttachment is really designed to represent a single file. (For example, the ERAttachment EO itself has attributes like size, thumbnail, width, height, mimeType.) You might be able to beat it into your use case, but there’s probably a better way of doing it. > how can i unzip this file after the uploads succeeds? As a separate question, you can certainly do this. But you’d need to forget about using a component that automatically creates an ERAttachment, and use one of the regular upload components, like AjaxFlexibleFileUpload. You can then grab the InputStream provided by that component and do whatever you like with it. You can even later create ERAttachments from your post-processed files. So, the summary is: I don’t think you’re going to win by trying to make an ERAttachment point to a filesystem directory, but everything else you’re talking about is completely possible. -- Paul Hoadley http://logicsquad.net/ https://www.linkedin.com/company/logic-squad/ ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
d2w file upload help
I have a ERAttachment relationship and I am upload assets. I need to upload .zip files and process them after they arrive. I need to unzip them. the contents of the zip is a webpage (index.html and images). Hopefully, I can unzip the file, and provide a link to this folder to view the webpage. The filesystempath of erattachment looks like this: /clientFiles/attachments/b/8/5/5.zip if I end up with /clientFiles/attachments/b/8/5/5 as a directory, I should be able to create a link to that folder. or am I barking up the wrong tree? how can i unzip this file after the uploads succeeds? ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Drag and drop Multiple file upload
Wow! Didn’t see that! And I even looked for it! That’s great, thank you guys! Matteo On 11 Feb 2014, at 14:57, Ramsey Gurley rgur...@smarthealth.com wrote: https://github.com/wocommunity/wonder/tree/master/Frameworks/BusinessLogic/ERAttachment/Components/ERDragAndDropUpload.wo Altera WO Team webobje...@altera.it wrote: Sure about that? Looks more like it’s the browser that allows drag and drop on the FileUpload object. Matteo On 11 Feb 2014, at 13:41, Jürgen Tabert jtab...@htgreenline.de wrote: the erattachment framework has drag and drop support On 11.02.2014, at 12:54, Altera WO Team webobje...@altera.it wrote: Hi, before i try to do it on my own I’d like to ask the list if anybody already did something like that: http://blueimp.github.io/jQuery-File-Upload/ Basically it’s a multiple file upload with drag and drop support. Any thoughts are welcome, Matteo Centro ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/jtabert%40htgreenline.de This email sent to jtab...@htgreenline.de ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/rgurley%40smarthealth.com This email sent to rgur...@smarthealth.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Drag and drop Multiple file upload
Hi, before i try to do it on my own I’d like to ask the list if anybody already did something like that: http://blueimp.github.io/jQuery-File-Upload/ Basically it’s a multiple file upload with drag and drop support. Any thoughts are welcome, Matteo Centro ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Drag and drop Multiple file upload
the erattachment framework has drag and drop support On 11.02.2014, at 12:54, Altera WO Team webobje...@altera.it wrote: Hi, before i try to do it on my own I’d like to ask the list if anybody already did something like that: http://blueimp.github.io/jQuery-File-Upload/ Basically it’s a multiple file upload with drag and drop support. Any thoughts are welcome, Matteo Centro ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/jtabert%40htgreenline.de This email sent to jtab...@htgreenline.de ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Drag and drop Multiple file upload
Sure about that? Looks more like it’s the browser that allows drag and drop on the FileUpload object. Matteo On 11 Feb 2014, at 13:41, Jürgen Tabert jtab...@htgreenline.de wrote: the erattachment framework has drag and drop support On 11.02.2014, at 12:54, Altera WO Team webobje...@altera.it wrote: Hi, before i try to do it on my own I’d like to ask the list if anybody already did something like that: http://blueimp.github.io/jQuery-File-Upload/ Basically it’s a multiple file upload with drag and drop support. Any thoughts are welcome, Matteo Centro ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/jtabert%40htgreenline.de This email sent to jtab...@htgreenline.de ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Drag and drop Multiple file upload
https://github.com/wocommunity/wonder/tree/master/Frameworks/BusinessLogic/ERAttachment/Components/ERDragAndDropUpload.wo Altera WO Team webobje...@altera.it wrote: Sure about that? Looks more like it’s the browser that allows drag and drop on the FileUpload object. Matteo On 11 Feb 2014, at 13:41, Jürgen Tabert jtab...@htgreenline.de wrote: the erattachment framework has drag and drop support On 11.02.2014, at 12:54, Altera WO Team webobje...@altera.it wrote: Hi, before i try to do it on my own I’d like to ask the list if anybody already did something like that: http://blueimp.github.io/jQuery-File-Upload/ Basically it’s a multiple file upload with drag and drop support. Any thoughts are welcome, Matteo Centro ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/jtabert%40htgreenline.de This email sent to jtab...@htgreenline.de ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/rgurley%40smarthealth.com This email sent to rgur...@smarthealth.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: HTML5 multiple file upload - AjaxFileUpload
Yeah. I just wanted a DnD upload. Multiple file upload was simply a bonus of the API :) Larry Mills-Gahl l...@webfarm.com wrote: ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/ramseygurley%40gmail.com This email sent to ramseygur...@gmail.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: HTML5 multiple file upload - AjaxFileUpload
Is the ERDragAndDropUpload component in ERAttachment part of this? (https://github.com/elemgee/wonder/commit/97cedc864d5026bb0849738630a5714136a0ddaa) The javadoc says the author is Ramsey so is this a separate development than what was being talked about in August? Larry On Aug 4, 2012, at 4:30 PM, David Holt wrote: Completely up to you. Thanks, David On 2012-08-04, at 1:25 PM, Michael Kondratov mich...@aspireauctions.com wrote: Yes! I've created a nice reusable component. Should I post it to the mailing list or upload to github? Michael Sent from my iPad On Aug 4, 2012, at 11:34, Kohlhase Ulrich ukohlh...@me.com wrote: Hi Michael, While searching in the WO dev mailing list for hints on how to get multiple (Ajax) file upload to work, I came across your post from November last year. Would you be willing to share the HTML5 multiple file upload you've mentioned with the community? Thanks a lot! Uli Date: Mon, 28 Nov 2011 22:41:36 -0500 From: Michael Kondratov mich...@aspireauctions.com Subject: Re: AjaxFileUpload UploadProgress binding To: Mai Nguyen brightmornin...@gmail.com Cc: WebObjects Development webobjects-dev@lists.apple.com Hello, I am working on an HTML5 drag and drop multi file upload component. I can share or try to submit it to WOnder if there is interest. Michael Kondratov Aspire Auctions, Inc. On Nov 28, 2011, at 10:39 PM, Mai Nguyen wrote: Hello List, Does anyone have an example of using an AjaxFileUpload where an actual file is uploaded? I have looked at the Ajax Example in Project Wonder, in particular FileUploadExample, and I used identical bindings in my test, but my upload is stuck after displaying the Upload Starting... message: upload3.tiff AjaxFileUpload : AjaxFileUpload { allowCancel = true; uploadProgress = uploadProgress; finishedAction = uploadFinished; } where uploadProgress is just defined as: public AjaxUploadProgress _uploadProgress; If I use AjaxFlexibleFileUpload, the file is uploaded properly, but I would rather use the standard upload. Anyone has any hints? Thanks for your help, mai ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/programmingosx%40mac.com This email sent to programming...@mac.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/lmg%40webfarm.com This email sent to l...@webfarm.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: HTML5 drag-n-drop multiple file upload - AjaxFileUpload
Hi Michael, While searching in the WO dev mailing list for hints on how to actually get multiple (Ajax) file upload to work, I came across your post from November last year. Are you still willing to share the HTML5 multiple file upload component you've mentioned with the WO community? Thanks a lot! Uli Date: Mon, 28 Nov 2011 22:41:36 -0500 From: Michael Kondratov mich...@aspireauctions.com Subject: Re: AjaxFileUpload UploadProgress binding To: Mai Nguyen brightmornin...@gmail.com Cc: WebObjects Development webobjects-dev@lists.apple.com Hello, I am working on an HTML5 drag and drop multi file upload component. I can share or try to submit it to WOnder if there is interest. Michael Kondratov Aspire Auctions, Inc. On Nov 28, 2011, at 10:39 PM, Mai Nguyen wrote: Hello List, Does anyone have an example of using an AjaxFileUpload where an actual file is uploaded? I have looked at the Ajax Example in Project Wonder, in particular FileUploadExample, and I used identical bindings in my test, but my upload is stuck after displaying the Upload Starting... message: upload3.tiff AjaxFileUpload : AjaxFileUpload { allowCancel = true; uploadProgress = uploadProgress; finishedAction = uploadFinished; } where uploadProgress is just defined as: public AjaxUploadProgress _uploadProgress; If I use AjaxFlexibleFileUpload, the file is uploaded properly, but I would rather use the standard upload. Anyone has any hints? Thanks for your help, mai ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: HTML5 multiple file upload - AjaxFileUpload
Yes! I've created a nice reusable component. Should I post it to the mailing list or upload to github? Michael Sent from my iPad On Aug 4, 2012, at 11:34, Kohlhase Ulrich ukohlh...@me.com wrote: Hi Michael, While searching in the WO dev mailing list for hints on how to get multiple (Ajax) file upload to work, I came across your post from November last year. Would you be willing to share the HTML5 multiple file upload you've mentioned with the community? Thanks a lot! Uli Date: Mon, 28 Nov 2011 22:41:36 -0500 From: Michael Kondratov mich...@aspireauctions.com Subject: Re: AjaxFileUpload UploadProgress binding To: Mai Nguyen brightmornin...@gmail.com Cc: WebObjects Development webobjects-dev@lists.apple.com Hello, I am working on an HTML5 drag and drop multi file upload component. I can share or try to submit it to WOnder if there is interest. Michael Kondratov Aspire Auctions, Inc. On Nov 28, 2011, at 10:39 PM, Mai Nguyen wrote: Hello List, Does anyone have an example of using an AjaxFileUpload where an actual file is uploaded? I have looked at the Ajax Example in Project Wonder, in particular FileUploadExample, and I used identical bindings in my test, but my upload is stuck after displaying the Upload Starting... message: upload3.tiff AjaxFileUpload : AjaxFileUpload { allowCancel = true; uploadProgress = uploadProgress; finishedAction = uploadFinished; } where uploadProgress is just defined as: public AjaxUploadProgress _uploadProgress; If I use AjaxFlexibleFileUpload, the file is uploaded properly, but I would rather use the standard upload. Anyone has any hints? Thanks for your help, mai ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: HTML5 drag-n-drop multiple file upload - AjaxFileUpload
Multiple parallel asyc uploads with a progress bar are a pretty big development task, we did this for our WebShare solution. It is possible with the standard WebObjects capabilities but requires a lot of additional programming. We basically iterate the WOMultipartIterator.WOFormData until we find our download field and get the InputStream from formDataInputStream(). Our upload form also includes additional fields containing unique upload unique id. A JavaScript in the browser asked periodically for the upload status via a direct action containing the uploads ids. BTW: The HTML5 drag drop feature does not work will all browsers. Now you have an idea how it can be done. Helmut PS: In our WebShare solution we forward this upload stream to a file server which unpacks ZIP file archives on-the-fly with the proper user credentials. We got also a file synchronize solution called WebShare Manager which allows dragdrop downloads to the desktop with ongoing synchronization for uploads and downloads. In case you need a product to save development time checkout WebShare on www.helios.de and www.helios.de/videos On 04.08.12 17:52, Kohlhase Ulrich wrote: While searching in the WO dev mailing list for hints on how to actually get multiple (Ajax) file upload to work, I came across your post from November last year. Are you still willing to share the HTML5 multiple file upload component you've mentioned with the WO community? Thanks a lot! Uli ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: HTML5 multiple file upload - AjaxFileUpload
Completely up to you. Thanks, David On 2012-08-04, at 1:25 PM, Michael Kondratov mich...@aspireauctions.com wrote: Yes! I've created a nice reusable component. Should I post it to the mailing list or upload to github? Michael Sent from my iPad On Aug 4, 2012, at 11:34, Kohlhase Ulrich ukohlh...@me.com wrote: Hi Michael, While searching in the WO dev mailing list for hints on how to get multiple (Ajax) file upload to work, I came across your post from November last year. Would you be willing to share the HTML5 multiple file upload you've mentioned with the community? Thanks a lot! Uli Date: Mon, 28 Nov 2011 22:41:36 -0500 From: Michael Kondratov mich...@aspireauctions.com Subject: Re: AjaxFileUpload UploadProgress binding To: Mai Nguyen brightmornin...@gmail.com Cc: WebObjects Development webobjects-dev@lists.apple.com Hello, I am working on an HTML5 drag and drop multi file upload component. I can share or try to submit it to WOnder if there is interest. Michael Kondratov Aspire Auctions, Inc. On Nov 28, 2011, at 10:39 PM, Mai Nguyen wrote: Hello List, Does anyone have an example of using an AjaxFileUpload where an actual file is uploaded? I have looked at the Ajax Example in Project Wonder, in particular FileUploadExample, and I used identical bindings in my test, but my upload is stuck after displaying the Upload Starting... message: upload3.tiff AjaxFileUpload : AjaxFileUpload { allowCancel = true; uploadProgress = uploadProgress; finishedAction = uploadFinished; } where uploadProgress is just defined as: public AjaxUploadProgress _uploadProgress; If I use AjaxFlexibleFileUpload, the file is uploaded properly, but I would rather use the standard upload. Anyone has any hints? Thanks for your help, mai ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/programmingosx%40mac.com This email sent to programming...@mac.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
WOFIleUpload multiple file upload
Since HTML 5 and Safari support the multiple attribute for file upload, I have been trying to figure out how to fetch multiple files submitted through the form. If I add the multiple attribute to a WOFileUpload element, indeed Safari allows me to pick multiple files and the file name attribute returns a comma delimited list of file names in the form values. However, the form data only contains the first selected file content. I have been struggling to figure out how to get the file content for all selected files. If I just use the file input tag directly and set multipart/form-data, I get form data for each file, but the content I get is empty for each file. What can I do within WebObjects to get the content of each uploaded file? thanks, tom ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: File Upload
Absolutely brilliant! I have some users that have been asking for exactly this functionality, with one addition: Is there a way to have the server report back file metadata upon completion? (What they want is the ability to attach up to 15MB of files, or 5 attachments, whichever comes first.) Again, David, this is an excellent addition to WO! Dave On Apr 28, 2010, at 11:17 PM, David LeBer wrote: Hey all, Because of the way inline edit pages work in ERModernLook all of the standard file upload components don't. So I've been working on one that will. I've got to say it's a pig of a problem. Mike had already done some heavy lifting on AjaxUpload but it required it's own form. Andrew Valums AjaxUpload.js http://valums.com/ajax-upload/ helps work around that. But getting the behaviour just right is tough. Widespread adoption of HTML5's file object cannot get here fast enough for me. Anyway, here is a sample movie of what I've been working on, I'd love feedback on whether the UI behaviour makes sense. http://files.me.com/dav1d/bkh7bx.mov ;david -- David LeBer Codeferous Software 'co-def-er-ous' adj. Literally 'code-bearing' site: http://codeferous.com blog: http://davidleber.net profile: http://www.linkedin.com/in/davidleber twitter: http://twitter.com/rebeld -- Toronto Area Cocoa / WebObjects developers group: http://tacow.org ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/webobjects%40avendasora.com This email sent to webobje...@avendasora.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: File Upload
On 2010-04-29, at 6:58 AM, David Avendasora wrote: Absolutely brilliant! I have some users that have been asking for exactly this functionality, with one addition: Is there a way to have the server report back file metadata upon completion? (What they want is the ability to attach up to 15MB of files, or 5 attachments, whichever comes first.) Again, David, this is an excellent addition to WO! There will be a WO action and a JS function called when the upload is complete. You can use those to do whatever you wish with the uploaded file. I just looked a the implementation for the AjaxUploadRequestHandler and there is a global value for maximum upload size. There is also a progress state object AjaxUploadProgress which is per upload, I suppose I could add an upload size value there that could override the global one. Dave On Apr 28, 2010, at 11:17 PM, David LeBer wrote: Hey all, Because of the way inline edit pages work in ERModernLook all of the standard file upload components don't. So I've been working on one that will. I've got to say it's a pig of a problem. Mike had already done some heavy lifting on AjaxUpload but it required it's own form. Andrew Valums AjaxUpload.js http://valums.com/ajax-upload/ helps work around that. But getting the behaviour just right is tough. Widespread adoption of HTML5's file object cannot get here fast enough for me. Anyway, here is a sample movie of what I've been working on, I'd love feedback on whether the UI behaviour makes sense. http://files.me.com/dav1d/bkh7bx.mov ;david -- David LeBer Codeferous Software 'co-def-er-ous' adj. Literally 'code-bearing' site: http://codeferous.com blog: http://davidleber.net profile:http://www.linkedin.com/in/davidleber twitter:http://twitter.com/rebeld -- Toronto Area Cocoa / WebObjects developers group: http://tacow.org ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: File Upload
Nice work! The UI behaviour makes perfect sense to me. Chuck On Apr 28, 2010, at 8:17 PM, David LeBer wrote: Hey all, Because of the way inline edit pages work in ERModernLook all of the standard file upload components don't. So I've been working on one that will. I've got to say it's a pig of a problem. Mike had already done some heavy lifting on AjaxUpload but it required it's own form. Andrew Valums AjaxUpload.js http://valums.com/ajax-upload/ helps work around that. But getting the behaviour just right is tough. Widespread adoption of HTML5's file object cannot get here fast enough for me. Anyway, here is a sample movie of what I've been working on, I'd love feedback on whether the UI behaviour makes sense. http://files.me.com/dav1d/bkh7bx.mov ;david -- David LeBer Codeferous Software 'co-def-er-ous' adj. Literally 'code-bearing' site: http://codeferous.com blog: http://davidleber.net profile:http://www.linkedin.com/in/davidleber twitter:http://twitter.com/rebeld -- Toronto Area Cocoa / WebObjects developers group: http://tacow.org ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/chill%40global-village.net This email sent to ch...@global-village.net -- Chuck Hill Senior Consultant / VP Development Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems. http://www.global-village.net/products/practical_webobjects ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: File Upload
I take it that one for use with ERAttachment, one would need to use the code route to push an attachment into the system, since this approach is mutually exclusive, correct? On Thu, Apr 29, 2010 at 6:34 AM, David LeBer dleber_wo...@codeferous.com wrote: On 2010-04-29, at 6:58 AM, David Avendasora wrote: Absolutely brilliant! I have some users that have been asking for exactly this functionality, with one addition: Is there a way to have the server report back file metadata upon completion? (What they want is the ability to attach up to 15MB of files, or 5 attachments, whichever comes first.) Again, David, this is an excellent addition to WO! There will be a WO action and a JS function called when the upload is complete. You can use those to do whatever you wish with the uploaded file. I just looked a the implementation for the AjaxUploadRequestHandler and there is a global value for maximum upload size. There is also a progress state object AjaxUploadProgress which is per upload, I suppose I could add an upload size value there that could override the global one. Dave On Apr 28, 2010, at 11:17 PM, David LeBer wrote: Hey all, Because of the way inline edit pages work in ERModernLook all of the standard file upload components don't. So I've been working on one that will. I've got to say it's a pig of a problem. Mike had already done some heavy lifting on AjaxUpload but it required it's own form. Andrew Valums AjaxUpload.js http://valums.com/ajax-upload/ helps work around that. But getting the behaviour just right is tough. Widespread adoption of HTML5's file object cannot get here fast enough for me. Anyway, here is a sample movie of what I've been working on, I'd love feedback on whether the UI behaviour makes sense. http://files.me.com/dav1d/bkh7bx.mov ;david -- David LeBer Codeferous Software 'co-def-er-ous' adj. Literally 'code-bearing' site: http://codeferous.com blog: http://davidleber.net profile: http://www.linkedin.com/in/davidleber twitter: http://twitter.com/rebeld -- Toronto Area Cocoa / WebObjects developers group: http://tacow.org ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/jmlittle%40gmail.com This email sent to jmlit...@gmail.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: File Upload
On 2010-04-29, at 10:47 AM, Joe Little wrote: I take it that one for use with ERAttachment, one would need to use the code route to push an attachment into the system, since this approach is mutually exclusive, correct? There will be an ERAttachment flavour of this... soon. On Thu, Apr 29, 2010 at 6:34 AM, David LeBer dleber_wo...@codeferous.com wrote: On 2010-04-29, at 6:58 AM, David Avendasora wrote: Absolutely brilliant! I have some users that have been asking for exactly this functionality, with one addition: Is there a way to have the server report back file metadata upon completion? (What they want is the ability to attach up to 15MB of files, or 5 attachments, whichever comes first.) Again, David, this is an excellent addition to WO! There will be a WO action and a JS function called when the upload is complete. You can use those to do whatever you wish with the uploaded file. I just looked a the implementation for the AjaxUploadRequestHandler and there is a global value for maximum upload size. There is also a progress state object AjaxUploadProgress which is per upload, I suppose I could add an upload size value there that could override the global one. Dave On Apr 28, 2010, at 11:17 PM, David LeBer wrote: Hey all, Because of the way inline edit pages work in ERModernLook all of the standard file upload components don't. So I've been working on one that will. I've got to say it's a pig of a problem. Mike had already done some heavy lifting on AjaxUpload but it required it's own form. Andrew Valums AjaxUpload.js http://valums.com/ajax-upload/ helps work around that. But getting the behaviour just right is tough. Widespread adoption of HTML5's file object cannot get here fast enough for me. Anyway, here is a sample movie of what I've been working on, I'd love feedback on whether the UI behaviour makes sense. http://files.me.com/dav1d/bkh7bx.mov ;david -- David LeBer Codeferous Software 'co-def-er-ous' adj. Literally 'code-bearing' site: http://codeferous.com blog: http://davidleber.net profile:http://www.linkedin.com/in/davidleber twitter:http://twitter.com/rebeld -- Toronto Area Cocoa / WebObjects developers group: http://tacow.org ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/jmlittle%40gmail.com This email sent to jmlit...@gmail.com ;david -- David LeBer Codeferous Software 'co-def-er-ous' adj. Literally 'code-bearing' site: http://codeferous.com blog: http://davidleber.net profile:http://www.linkedin.com/in/davidleber twitter:http://twitter.com/rebeld -- Toronto Area Cocoa / WebObjects developers group: http://tacow.org ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
File Upload
Hey all, Because of the way inline edit pages work in ERModernLook all of the standard file upload components don't. So I've been working on one that will. I've got to say it's a pig of a problem. Mike had already done some heavy lifting on AjaxUpload but it required it's own form. Andrew Valums AjaxUpload.js http://valums.com/ajax-upload/ helps work around that. But getting the behaviour just right is tough. Widespread adoption of HTML5's file object cannot get here fast enough for me. Anyway, here is a sample movie of what I've been working on, I'd love feedback on whether the UI behaviour makes sense. http://files.me.com/dav1d/bkh7bx.mov ;david -- David LeBer Codeferous Software 'co-def-er-ous' adj. Literally 'code-bearing' site: http://codeferous.com blog: http://davidleber.net profile:http://www.linkedin.com/in/davidleber twitter:http://twitter.com/rebeld -- Toronto Area Cocoa / WebObjects developers group: http://tacow.org ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: File Upload
i dig it ... i've never been happy with how AjaxFileUpload worked and the funky limitations it had. On Apr 28, 2010, at 11:17 PM, David LeBer wrote: Hey all, Because of the way inline edit pages work in ERModernLook all of the standard file upload components don't. So I've been working on one that will. I've got to say it's a pig of a problem. Mike had already done some heavy lifting on AjaxUpload but it required it's own form. Andrew Valums AjaxUpload.js http://valums.com/ajax-upload/ helps work around that. But getting the behaviour just right is tough. Widespread adoption of HTML5's file object cannot get here fast enough for me. Anyway, here is a sample movie of what I've been working on, I'd love feedback on whether the UI behaviour makes sense. http://files.me.com/dav1d/bkh7bx.mov ;david -- David LeBer Codeferous Software 'co-def-er-ous' adj. Literally 'code-bearing' site: http://codeferous.com blog: http://davidleber.net profile: http://www.linkedin.com/in/davidleber twitter: http://twitter.com/rebeld -- Toronto Area Cocoa / WebObjects developers group: http://tacow.org ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/mschrag%40pobox.com This email sent to msch...@pobox.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: File Upload
One thing that would be nice is a javascript function to start the upload and a callback on completion ... This would potentially allow a solution to file uploads in ajax forms -- you could have a submit button that when clicked, grayed out the submit (sending...), starts the upload in the form, and on completion, it could then actually perform the ajax submit of the rest of the form. ms On Apr 28, 2010, at 11:23 PM, Mike Schrag wrote: i dig it ... i've never been happy with how AjaxFileUpload worked and the funky limitations it had. On Apr 28, 2010, at 11:17 PM, David LeBer wrote: Hey all, Because of the way inline edit pages work in ERModernLook all of the standard file upload components don't. So I've been working on one that will. I've got to say it's a pig of a problem. Mike had already done some heavy lifting on AjaxUpload but it required it's own form. Andrew Valums AjaxUpload.js http://valums.com/ajax-upload/ helps work around that. But getting the behaviour just right is tough. Widespread adoption of HTML5's file object cannot get here fast enough for me. Anyway, here is a sample movie of what I've been working on, I'd love feedback on whether the UI behaviour makes sense. http://files.me.com/dav1d/bkh7bx.mov ;david -- David LeBer Codeferous Software 'co-def-er-ous' adj. Literally 'code-bearing' site:http://codeferous.com blog:http://davidleber.net profile: http://www.linkedin.com/in/davidleber twitter: http://twitter.com/rebeld -- Toronto Area Cocoa / WebObjects developers group: http://tacow.org ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/mschrag%40pobox.com This email sent to msch...@pobox.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/mschrag%40pobox.com This email sent to msch...@pobox.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: File Upload
On 2010-04-28, at 11:26 PM, Mike Schrag wrote: One thing that would be nice is a javascript function to start the upload and a callback on completion ... This would potentially allow a solution to file uploads in ajax forms -- you could have a submit button that when clicked, grayed out the submit (sending...), starts the upload in the form, and on completion, it could then actually perform the ajax submit of the rest of the form. Yeah, I think I can implement that without much trouble, and I can see that being a nice way to handle uploads in forms. ms On Apr 28, 2010, at 11:23 PM, Mike Schrag wrote: i dig it ... i've never been happy with how AjaxFileUpload worked and the funky limitations it had. On Apr 28, 2010, at 11:17 PM, David LeBer wrote: Hey all, Because of the way inline edit pages work in ERModernLook all of the standard file upload components don't. So I've been working on one that will. I've got to say it's a pig of a problem. Mike had already done some heavy lifting on AjaxUpload but it required it's own form. Andrew Valums AjaxUpload.js http://valums.com/ajax-upload/ helps work around that. But getting the behaviour just right is tough. Widespread adoption of HTML5's file object cannot get here fast enough for me. Anyway, here is a sample movie of what I've been working on, I'd love feedback on whether the UI behaviour makes sense. http://files.me.com/dav1d/bkh7bx.mov ;david -- David LeBer Codeferous Software 'co-def-er-ous' adj. Literally 'code-bearing' site: http://codeferous.com blog: http://davidleber.net profile:http://www.linkedin.com/in/davidleber twitter:http://twitter.com/rebeld -- Toronto Area Cocoa / WebObjects developers group: http://tacow.org ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Multiple File upload read
Thanks for the advice. I have a new problem. I am doing this: if (aContext.request().isMultipartFormData()){ WOMultipartIterator wmi = aContext.request().multipartIterator(); WOFormData data = wmi.nextFormData(); while (data != null) { if ( data.isStreamValid()) { System.out.println(data.toString()); try { NSData myFile = data.formData(); this.workWithTheFile(myFile); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } } data = wmi.nextFormData(); } // The method this.workWithTheFile(myFile) used to work with WOFileUpload perfectly fine, but right now its throwing an error. System.out.println(data.toString()) prints: WOFormData 4 isStreamValid true headers: {content-disposition = ({form-data = class com.webobjects.foundation.NSData (offset=0, length=9, data=[102]'f', [111]'o', [114]'r', [109]'m', [45]'-', [100]'d', [97]'a', [116]'t', [97]'a'); filename = myXMLFile.xml; name = File0; }); content-type = (text/xml); } The main problem is that NSData myFile = data.formData() is returning null. How should I handle the WOFormData to convert it into a valid NSData? Thank you for your time. -- Fabián Montealegre Carvajal ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Multiple File upload read
On Mar 5, 2010, at 9:27 AM, Fabián Montealegre Carvajal wrote: Thanks for the advice. I have a new problem. I am doing this: if (aContext.request().isMultipartFormData()){ WOMultipartIterator wmi = aContext.request().multipartIterator(); WOFormData data = wmi.nextFormData(); As a guess, you probably want public InputStream formDataInputStream() while (data != null) { if ( data.isStreamValid()) { System.out.println(data.toString()); try { NSData myFile = data.formData(); this.workWithTheFile(myFile); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } } data = wmi.nextFormData(); } // The method this.workWithTheFile(myFile) used to work with WOFileUpload perfectly fine, but right now its throwing an error. System.out.println(data.toString()) prints: WOFormData 4 isStreamValid true headers: {content-disposition = ({form-data = class com.webobjects.foundation.NSData (offset=0, length=9, data=[102]'f', [111]'o', [114]'r', [109]'m', [45]'-', [100]'d', [97]'a', [116]'t', [97]'a'); filename = myXMLFile.xml; name = File0; }); content-type = (text/xml); } The main problem is that NSData myFile = data.formData() is returning null. How should I handle the WOFormData to convert it into a valid NSData? Thank you for your time. -- Fabián Montealegre Carvajal ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/chill%40global-village.net This email sent to ch...@global-village.net -- Chuck Hill Senior Consultant / VP Development Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems. http://www.global-village.net/products/practical_webobjects ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Multiple File upload read
Thank you very much. That worked perfectly :D -- Fabián Montealegre Carvajal ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Multiple File upload read
Hi Fabian, take a look at WORequest#isMultipartFormData, WORequest#multipartIterator, WOMultipartIterator and WOMultipartIterator.WOFormData For inspiration, you colud take a look into AjaxFileUploadRequestHandler in Wonder's Ajax framework. Timo Am 23.02.2010 um 18:59 schrieb Fabián Montealegre Carvajal: Hello, I'm using an applet called JUpload to upload multiple files to the server. I'm used to the WOFileUpload to handle uploads, but this time I need to read the files directly from the request because the applet just post to an URL. I remember that in PHP one just access the $_FILE global to achieve this. Is the there a similar way I could read the files in WO? Thank you. -- Fabián Montealegre Carvajal ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/th-dev%40onlinehome.de This email sent to th-...@onlinehome.de ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: File Upload Example or Project Import Problem
If you're using Wonder, ERAttachment framework is the way to go. http://webobjects.mdimension.com/hudson/job/Wonder53/javadoc/er/attachment/package-summary.html Ramsey On Nov 12, 2009, at 4:47 AM, Chan Yeow Heong, Jerome wrote: Hello! Is there an example on how to use file upload in WebObjects? Most of my google hits return the developer/examples/javawebobjects/ project. The problem is I can't seem to import the files into eclipse. I create a new project and drag the files from the finder and drop them into where they should go but I'm getting 500+ errors on the template files. Most of the /CENTER occurred before /BRBasicUploadSTFPPage.html FileUploadSample/Components/BasicUploadSTFPPage.wo line 68 WebObjects Template Problems kind. Is a work around or another example? Thank you! ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/rgurley%40mac.com This email sent to rgur...@mac.com smime.p7s Description: S/MIME cryptographic signature ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
ERAttachmentProcessor file upload
hi, Is it possible to give file name that we want in uploading files using ERAttachmentProcessor. When a file is uploaded (e.g: style.css) it is in a folder like this. .//1/attachments/c/8/9/1.css How do I upload a file (e.g: my_file.gif) to the same above location with the mentioned name. Thanks Rumal Dias ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: ERAttachmentProcessor file upload
http://webobjects.mdimension.com/wonder/api/er/attachment/package-summary.html it talks some about the variable replacement -- you can use $ {fileName}, but this is not really safe ... if someone uploads a file with the same name, it's going to be overwritten unless you namespace it with the pk in is own directory or something. you can make it return the original filename to the user, though, if you're using one of the proxied viewers (i.e. as long as you're not serving files from apache). On Jul 23, 2009, at 4:13 AM, Rukmal Dias wrote: hi, Is it possible to give file name that we want in uploading files using ERAttachmentProcessor. When a file is uploaded (e.g: style.css) it is in a folder like this. .//1/attachments/c/8/9/1.css How do I upload a file (e.g: my_file.gif) to the same above location with the mentioned name. Thanks Rumal Dias ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/mschrag%40mdimension.com This email sent to msch...@mdimension.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: File upload as longresponse page
Hi all, I'm looking for a solution to give feedback to the user when he wants to upload large files, ideally without any javascript.. I try to do that without any javascript, but I'm not sure that it could be possible. I found this old mail in the mailing list, but the link to wocode is now unavailable. Someone knows how this code works or a new link to found that ? There is maybe a new way to do that.. Thanks for your help. Cedric Le 23 janv. 06 à 20:12, David Holt a écrit : Hi Wolfram, Check out the non-blocking file upload on WOCode. I find that it works pretty well and looks to do what you are asking for. http://wocode.com/cgi-bin/WebObjects/WOCode.woa/1/wa/ShareCodeItem?itemId=306 David -- Men are afraid to rock the boat in which they hope to drift safely through life's currents, when, actually, the boat is stuck on a sandbar. They would be better off to rock the boat and try to shake it loose, or, better still, jump in the water and swim for the shore. Thomas Szasz from Sunbeams: http://www.thesunmagazine.org On 21 Jan 2006, at 3:09 AM, Wolfram Stebel wrote: Hi list, is there any known implementation for a file upload with a long reponse page, giving feedback for the upload process? The reason i ask (and correct me when i'm wrong!): - browsers do not check the file size - browsers will time out in normal WOFileUpload on files to big - Sessions might time out, when the normal WOFileUpload takes tooo long :-) - Users get bored, uploading large files, getting told file to big. Before WO included WOFileUpload component, there must have been lots of implementations for streaming. Would it help, doing it myself? Any code snippets? And (sorry for asking, might be very dumb :-) ) would i be able to check the file size before streaming up, i.e. to provide progress information? Thanks all! Wolfram ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/programmingosx%40mac.com This email sent to programming...@mac.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/webobjects%40anazys.com This email sent to webobje...@anazys.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: File upload as longresponse page
Take a look at AjaxFileUpload in Wonder's Ajax framework. Chuck On Jun 19, 2009, at 5:35 AM, WebObjects - Anazys wrote: Hi all, I'm looking for a solution to give feedback to the user when he wants to upload large files, ideally without any javascript.. I try to do that without any javascript, but I'm not sure that it could be possible. I found this old mail in the mailing list, but the link to wocode is now unavailable. Someone knows how this code works or a new link to found that ? There is maybe a new way to do that.. Thanks for your help. Cedric Le 23 janv. 06 à 20:12, David Holt a écrit : Hi Wolfram, Check out the non-blocking file upload on WOCode. I find that it works pretty well and looks to do what you are asking for. http://wocode.com/cgi-bin/WebObjects/WOCode.woa/1/wa/ShareCodeItem?itemId=306 David -- Men are afraid to rock the boat in which they hope to drift safely through life's currents, when, actually, the boat is stuck on a sandbar. They would be better off to rock the boat and try to shake it loose, or, better still, jump in the water and swim for the shore. Thomas Szasz from Sunbeams: http://www.thesunmagazine.org On 21 Jan 2006, at 3:09 AM, Wolfram Stebel wrote: Hi list, is there any known implementation for a file upload with a long reponse page, giving feedback for the upload process? The reason i ask (and correct me when i'm wrong!): - browsers do not check the file size - browsers will time out in normal WOFileUpload on files to big - Sessions might time out, when the normal WOFileUpload takes tooo long :-) - Users get bored, uploading large files, getting told file to big. Before WO included WOFileUpload component, there must have been lots of implementations for streaming. Would it help, doing it myself? Any code snippets? And (sorry for asking, might be very dumb :-) ) would i be able to check the file size before streaming up, i.e. to provide progress information? Thanks all! Wolfram ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/programmingosx%40mac.com This email sent to programming...@mac.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/webobjects%40anazys.com This email sent to webobje...@anazys.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/chill%40global-village.net This email sent to ch...@global-village.net -- Chuck Hill Senior Consultant / VP Development Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems. http://www.global-village.net/products/practical_webobjects ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Problem File Upload WO 5.4 WONDER 5.0.0.8764
Hi Sergio, On Dec 31, 2008, at 9:23 AM, Sergio Sánchez Maffet wrote: Chuck, finally I got it running. Thanks a lot for your help. The language is set to German and the default form value encoding for German is iso8859-1 in ERXMessageEncoding. That seems a little odd. That class is pretty old, so this might be from long ago. After setting the encoding with setDefaultEncodingForAllLanguages to UTF-8, I got it running. Dont know if this is some kind of a bug, the encoding should be set to the request encoding and this is/was UTF-8... I have also noticed, that this is a general problem... not only related to file uploads... Do I have a miss understanding here? You _might_ be missing something from your Properties file. I don't do much with this part of Wonder. I can't think of a good reason to have a web app that is not UTF-8. You might want to ask this on the Wonder list. Chuck On 16.12.2008, at 20:05, Chuck Hill wrote: On Dec 15, 2008, at 5:31 PM, Sergio Sánchez Maffet wrote: Hi all, I have some problems regarding file uploads with WO 5.4.3. When I submit the form, my action method is called, but the form values get lost some where in the request processing. The page is very simple, only a text field and a file upload inside a form and a submit button. Every thing is binded correctly and it has worked with WO 5.3. I'm using WONDER 5.0.0.8764 for WO 5.4. The application is running in direct connect mode, and session id's are stored in a cookies... dont know if this has some importance. The problem mentioned by William Hatch (Subject: WOFileUpload and 5.4, from 10/30/08) seems to be similar, but there is was solution posted. As Chuck mentioned, form values can get lost when the encoding changes during the request, this seems to happen in my case, but I do not understand why? Here is a log of the request in dispatchRequest() and in the same thread later in takeValueFromRequest(): Dec 16 02:01:46 MyApplication[3004] DEBUG NSLog - dispatchRequest: er.extensions.appserver.ERXRequest (er.extensions.appserver.ERXRequest httpVersion=HTTP/1.1 headers={accept=[text/xml,application/xml,application/xhtml +xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5], accept- encoding=[gzip, deflate], accept-language=[en-us], connection=[keep-alive], content-length=[851656], content- type=[multipart/form-data; boundary= WebKitFormBoundaryoAlLNzXKfp0pQVgV], cookie=[wosid=JqNtBIQBjJoJDvcBQt4bAw; woinst=-1], host=[192.168.4.35:3004], referer=[http://192.168.4.35:3004/cgi-bin/WebObjects/MyApplication.woa/wo/6.5 ], user-agent=[Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_5; en-us) AppleWebKit/525.27.1 (KHTML, like Gecko) Version/3.2.1 Safari/525.27.1]} content-length=851656 cookies=null userInfo={} storePageInBacktrackCache=true ) method=POST uri=/cgi-bin/ WebObjects/MyApplication.woa/wo/7.5 defaultFormValueEncoding=UTF-8 formValueEncodingDetectionEnabled=NO formValueEncoding=UTF-8 formValues={5.1 = (Test 1); 5.3.mimetype = (image/jpeg); 5.3.filename = (DSC00033.JPG); 5.3 = (class com.webobjects.appserver._private.WOInputStreamData (stream com.webobjects.appserver.WOMultipartIterator$WOFormData $_woformdatainputstr...@ee68d1 of length 0), has NOT been accessed); } Dec 16 02:01:46 MyApplication[3004] DEBUG NSLog - takeValuesFromRequest: er.extensions.appserver.ERXRequest (er.extensions.appserver.ERXRequest httpVersion=HTTP/1.1 headers={accept=[text/xml,application/xml,application/xhtml +xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5], accept- encoding=[gzip, deflate], accept-language=[en-us], connection=[keep-alive], content-length=[851656], content- type=[multipart/form-data; boundary= WebKitFormBoundaryoAlLNzXKfp0pQVgV], cookie=[wosid=JqNtBIQBjJoJDvcBQt4bAw; woinst=-1], host=[192.168.4.35:3004], original_context_id=[7], referer=[http://192.168.4.35:3004/cgi-bin/WebObjects/MyApplication.woa/wo/6.5 ], user-agent=[Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_5; en-us) AppleWebKit/525.27.1 (KHTML, like Gecko) Version/3.2.1 Safari/525.27.1]} content-length=0 cookies=null userInfo={} storePageInBacktrackCache=true ) method=POST uri=/cgi-bin/ WebObjects/MyApplication.woa/wo/7.5 defaultFormValueEncoding=ISO8859_1 formValueEncodingDetectionEnabled=NO formValueEncoding=ISO8859_1 formValues={} I have tried to set the form value encoding to UTF-8 in the dispatchRequest() method with no luck, I also tried WOFileUpload and ERXWOFileUpload. Any clues or ideas to fix it? Sergio, This is what I would do to track this down: 1. Create a subclass of ERXRequest and implement these methods: setDefaultFormValueEncoding(String value) setFormValueEncoding(String value) to be like: public void setDefaultFormValueEncoding(String value) { NSLog.out.appendln(new RuntimeException(set to + value)); super.setDefaultFormValueEncoding(value); } 2. In your
Re: Problem File Upload WO 5.4 WONDER 5.0.0.8764
Chuck, finally I got it running. Thanks a lot for your help. The language is set to German and the default form value encoding for German is iso8859-1 in ERXMessageEncoding. After setting the encoding with setDefaultEncodingForAllLanguages to UTF-8, I got it running. Dont know if this is some kind of a bug, the encoding should be set to the request encoding and this is/was UTF-8... I have also noticed, that this is a general problem... not only related to file uploads... Do I have a miss understanding here? Regards, Sergio On 16.12.2008, at 20:05, Chuck Hill wrote: On Dec 15, 2008, at 5:31 PM, Sergio Sánchez Maffet wrote: Hi all, I have some problems regarding file uploads with WO 5.4.3. When I submit the form, my action method is called, but the form values get lost some where in the request processing. The page is very simple, only a text field and a file upload inside a form and a submit button. Every thing is binded correctly and it has worked with WO 5.3. I'm using WONDER 5.0.0.8764 for WO 5.4. The application is running in direct connect mode, and session id's are stored in a cookies... dont know if this has some importance. The problem mentioned by William Hatch (Subject: WOFileUpload and 5.4, from 10/30/08) seems to be similar, but there is was solution posted. As Chuck mentioned, form values can get lost when the encoding changes during the request, this seems to happen in my case, but I do not understand why? Here is a log of the request in dispatchRequest() and in the same thread later in takeValueFromRequest(): Dec 16 02:01:46 MyApplication[3004] DEBUG NSLog - dispatchRequest: er.extensions.appserver.ERXRequest (er.extensions.appserver.ERXRequest httpVersion=HTTP/1.1 headers={accept=[text/xml,application/xml,application/xhtml +xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5], accept- encoding=[gzip, deflate], accept-language=[en-us], connection=[keep- alive], content-length=[851656], content-type=[multipart/form-data; boundary=WebKitFormBoundaryoAlLNzXKfp0pQVgV], cookie=[wosid=JqNtBIQBjJoJDvcBQt4bAw; woinst=-1], host=[192.168.4.35:3004], referer=[http://192.168.4.35:3004/cgi-bin/WebObjects/MyApplication.woa/wo/6.5 ], user-agent=[Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_5; en- us) AppleWebKit/525.27.1 (KHTML, like Gecko) Version/3.2.1 Safari/ 525.27.1]} content-length=851656 cookies=null userInfo={} storePageInBacktrackCache=true ) method=POST uri=/cgi-bin/ WebObjects/MyApplication.woa/wo/7.5 defaultFormValueEncoding=UTF-8 formValueEncodingDetectionEnabled=NO formValueEncoding=UTF-8 formValues={5.1 = (Test 1); 5.3.mimetype = (image/jpeg); 5.3.filename = (DSC00033.JPG); 5.3 = (class com.webobjects.appserver._private.WOInputStreamData (stream com.webobjects.appserver.WOMultipartIterator$WOFormData $_woformdatainputstr...@ee68d1 of length 0), has NOT been accessed); } Dec 16 02:01:46 MyApplication[3004] DEBUG NSLog - takeValuesFromRequest: er.extensions.appserver.ERXRequest (er.extensions.appserver.ERXRequest httpVersion=HTTP/1.1 headers={accept=[text/xml,application/xml,application/xhtml +xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5], accept- encoding=[gzip, deflate], accept-language=[en-us], connection=[keep- alive], content-length=[851656], content-type=[multipart/form-data; boundary=WebKitFormBoundaryoAlLNzXKfp0pQVgV], cookie=[wosid=JqNtBIQBjJoJDvcBQt4bAw; woinst=-1], host=[192.168.4.35:3004], original_context_id=[7], referer=[http://192.168.4.35:3004/cgi-bin/WebObjects/MyApplication.woa/wo/6.5 ], user-agent=[Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_5; en- us) AppleWebKit/525.27.1 (KHTML, like Gecko) Version/3.2.1 Safari/ 525.27.1]} content-length=0 cookies=null userInfo={} storePageInBacktrackCache=true ) method=POST uri=/cgi-bin/ WebObjects/MyApplication.woa/wo/7.5 defaultFormValueEncoding=ISO8859_1 formValueEncodingDetectionEnabled=NO formValueEncoding=ISO8859_1 formValues={} I have tried to set the form value encoding to UTF-8 in the dispatchRequest() method with no luck, I also tried WOFileUpload and ERXWOFileUpload. Any clues or ideas to fix it? Sergio, This is what I would do to track this down: 1. Create a subclass of ERXRequest and implement these methods: setDefaultFormValueEncoding(String value) setFormValueEncoding(String value) to be like: public void setDefaultFormValueEncoding(String value) { NSLog.out.appendln(new RuntimeException(set to + value)); super.setDefaultFormValueEncoding(value); } 2. In your Application class, implement _createRequest as protected WORequest _createRequest(String aMethod, String aURL, String anHTTPVersion, NSDictionary someHeaders, NSData aContent, NSDictionary someInfo) { if (anHTTPVersion == null || anHTTPVersion.startsWith(INCLUDED)) { anHTTPVersion = HTTP/1.0
Re: Problem File Upload WO 5.4 WONDER 5.0.0.8764
On Dec 15, 2008, at 5:31 PM, Sergio Sánchez Maffet wrote: Hi all, I have some problems regarding file uploads with WO 5.4.3. When I submit the form, my action method is called, but the form values get lost some where in the request processing. The page is very simple, only a text field and a file upload inside a form and a submit button. Every thing is binded correctly and it has worked with WO 5.3. I'm using WONDER 5.0.0.8764 for WO 5.4. The application is running in direct connect mode, and session id's are stored in a cookies... dont know if this has some importance. The problem mentioned by William Hatch (Subject: WOFileUpload and 5.4, from 10/30/08) seems to be similar, but there is was solution posted. As Chuck mentioned, form values can get lost when the encoding changes during the request, this seems to happen in my case, but I do not understand why? Here is a log of the request in dispatchRequest() and in the same thread later in takeValueFromRequest(): Dec 16 02:01:46 MyApplication[3004] DEBUG NSLog - dispatchRequest: er.extensions.appserver.ERXRequest (er.extensions.appserver.ERXRequest httpVersion=HTTP/1.1 headers={accept=[text/xml,application/xml,application/xhtml+xml,text/ html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5], accept- encoding=[gzip, deflate], accept-language=[en-us], connection=[keep- alive], content-length=[851656], content-type=[multipart/form-data; boundary=WebKitFormBoundaryoAlLNzXKfp0pQVgV], cookie=[wosid=JqNtBIQBjJoJDvcBQt4bAw; woinst=-1], host=[192.168.4.35:3004], referer=[http://192.168.4.35:3004/cgi-bin/WebObjects/MyApplication.woa/wo/6.5 ], user-agent=[Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_5; en- us) AppleWebKit/525.27.1 (KHTML, like Gecko) Version/3.2.1 Safari/ 525.27.1]} content-length=851656 cookies=null userInfo={} storePageInBacktrackCache=true ) method=POST uri=/cgi-bin/ WebObjects/MyApplication.woa/wo/7.5 defaultFormValueEncoding=UTF-8 formValueEncodingDetectionEnabled=NO formValueEncoding=UTF-8 formValues={5.1 = (Test 1); 5.3.mimetype = (image/jpeg); 5.3.filename = (DSC00033.JPG); 5.3 = (class com.webobjects.appserver._private.WOInputStreamData (stream com.webobjects.appserver.WOMultipartIterator$WOFormData $_woformdatainputstr...@ee68d1 of length 0), has NOT been accessed); } Dec 16 02:01:46 MyApplication[3004] DEBUG NSLog - takeValuesFromRequest: er.extensions.appserver.ERXRequest (er.extensions.appserver.ERXRequest httpVersion=HTTP/1.1 headers={accept=[text/xml,application/xml,application/xhtml+xml,text/ html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5], accept- encoding=[gzip, deflate], accept-language=[en-us], connection=[keep- alive], content-length=[851656], content-type=[multipart/form-data; boundary=WebKitFormBoundaryoAlLNzXKfp0pQVgV], cookie=[wosid=JqNtBIQBjJoJDvcBQt4bAw; woinst=-1], host=[192.168.4.35:3004], original_context_id=[7], referer=[http://192.168.4.35:3004/cgi-bin/WebObjects/MyApplication.woa/wo/6.5 ], user-agent=[Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_5; en- us) AppleWebKit/525.27.1 (KHTML, like Gecko) Version/3.2.1 Safari/ 525.27.1]} content-length=0 cookies=null userInfo={} storePageInBacktrackCache=true ) method=POST uri=/cgi-bin/ WebObjects/MyApplication.woa/wo/7.5 defaultFormValueEncoding=ISO8859_1 formValueEncodingDetectionEnabled=NO formValueEncoding=ISO8859_1 formValues={} I have tried to set the form value encoding to UTF-8 in the dispatchRequest() method with no luck, I also tried WOFileUpload and ERXWOFileUpload. Any clues or ideas to fix it? Sergio, This is what I would do to track this down: 1. Create a subclass of ERXRequest and implement these methods: setDefaultFormValueEncoding(String value) setFormValueEncoding(String value) to be like: public void setDefaultFormValueEncoding(String value) { NSLog.out.appendln(new RuntimeException(set to + value)); super.setDefaultFormValueEncoding(value); } 2. In your Application class, implement _createRequest as protected WORequest _createRequest(String aMethod, String aURL, String anHTTPVersion, NSDictionary someHeaders, NSData aContent, NSDictionary someInfo) { if (anHTTPVersion == null || anHTTPVersion.startsWith(INCLUDED)) { anHTTPVersion = HTTP/1.0; } if (GET.equalsIgnoreCase(aMethod) someHeaders != null someHeaders.objectForKey(content-type) != null) { someHeaders = someHeaders.mutableClone(); ((NSMutableDictionary)someHeaders).removeObjectForKey(content- type); } if (rewriteDirectConnectURL()) { aURL = /cgi-bin/WebObjects/ + name() + .woa + aURL; } NOTE THE NEXT LINE! WORequest worequest = new YOUR REQUEST CLASS HERE(aMethod, aURL, anHTTPVersion, someHeaders, aContent, someInfo); return worequest
Problem File Upload WO 5.4 WONDER 5.0.0.8764
Hi all, I have some problems regarding file uploads with WO 5.4.3. When I submit the form, my action method is called, but the form values get lost some where in the request processing. The page is very simple, only a text field and a file upload inside a form and a submit button. Every thing is binded correctly and it has worked with WO 5.3. I'm using WONDER 5.0.0.8764 for WO 5.4. The application is running in direct connect mode, and session id's are stored in a cookies... dont know if this has some importance. The problem mentioned by William Hatch (Subject: WOFileUpload and 5.4, from 10/30/08) seems to be similar, but there is was solution posted. As Chuck mentioned, form values can get lost when the encoding changes during the request, this seems to happen in my case, but I do not understand why? Here is a log of the request in dispatchRequest() and in the same thread later in takeValueFromRequest(): Dec 16 02:01:46 MyApplication[3004] DEBUG NSLog - dispatchRequest: er.extensions.appserver.ERXRequest (er.extensions.appserver.ERXRequest httpVersion=HTTP/1.1 headers={accept=[text/xml,application/xml,application/xhtml+xml,text/ html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5], accept- encoding=[gzip, deflate], accept-language=[en-us], connection=[keep- alive], content-length=[851656], content-type=[multipart/form-data; boundary=WebKitFormBoundaryoAlLNzXKfp0pQVgV], cookie=[wosid=JqNtBIQBjJoJDvcBQt4bAw; woinst=-1], host=[192.168.4.35:3004], referer=[http://192.168.4.35:3004/cgi-bin/WebObjects/MyApplication.woa/wo/6.5 ], user-agent=[Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_5; en- us) AppleWebKit/525.27.1 (KHTML, like Gecko) Version/3.2.1 Safari/ 525.27.1]} content-length=851656 cookies=null userInfo={} storePageInBacktrackCache=true ) method=POST uri=/cgi-bin/WebObjects/ MyApplication.woa/wo/7.5 defaultFormValueEncoding=UTF-8 formValueEncodingDetectionEnabled=NO formValueEncoding=UTF-8 formValues={5.1 = (Test 1); 5.3.mimetype = (image/jpeg); 5.3.filename = (DSC00033.JPG); 5.3 = (class com.webobjects.appserver._private.WOInputStreamData (stream com.webobjects.appserver.WOMultipartIterator$WOFormData $_woformdatainputstr...@ee68d1 of length 0), has NOT been accessed); } Dec 16 02:01:46 MyApplication[3004] DEBUG NSLog - takeValuesFromRequest: er.extensions.appserver.ERXRequest (er.extensions.appserver.ERXRequest httpVersion=HTTP/1.1 headers={accept=[text/xml,application/xml,application/xhtml+xml,text/ html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5], accept- encoding=[gzip, deflate], accept-language=[en-us], connection=[keep- alive], content-length=[851656], content-type=[multipart/form-data; boundary=WebKitFormBoundaryoAlLNzXKfp0pQVgV], cookie=[wosid=JqNtBIQBjJoJDvcBQt4bAw; woinst=-1], host=[192.168.4.35:3004], original_context_id=[7], referer=[http://192.168.4.35:3004/cgi-bin/WebObjects/MyApplication.woa/wo/6.5 ], user-agent=[Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_5; en- us) AppleWebKit/525.27.1 (KHTML, like Gecko) Version/3.2.1 Safari/ 525.27.1]} content-length=0 cookies=null userInfo={} storePageInBacktrackCache=true ) method=POST uri=/cgi-bin/WebObjects/ MyApplication.woa/wo/7.5 defaultFormValueEncoding=ISO8859_1 formValueEncodingDetectionEnabled=NO formValueEncoding=ISO8859_1 formValues={} I have tried to set the form value encoding to UTF-8 in the dispatchRequest() method with no luck, I also tried WOFileUpload and ERXWOFileUpload. Any clues or ideas to fix it? Regards, -- Sergio ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
File upload problem - occasionally nothing happens
Hi! I'm having a very weird problem with our file uploader. Most of the times, everything works as it should. But occasionally, with about 5% probability, when I submit, nothing happens. By nothing happens, I mean the browser opens a connection (or at least it says it does) but nothing happens on the server side. Nothing appears on the Apache access (or error) log. No action is called in WO (I believe no request gets to WO at all). I tried to use WebScarab to see what's going on, but I can't reproduce the issue when I have WebScarab between the browser and the server. It seems to always work. This leads me to believe this is some kind of weird http problem, maybe related with the apache module for WebObjects or something like that. Does anyone have a clue? Yours Miguel Arroz ... http://www.survs.com smime.p7s Description: S/MIME cryptographic signature ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
[SOLVED] Re: File upload problem - occasionally nothing happens
Hi! Please do forget... apparently it was a race condition in the JavaScript code. I was removing the form from the page DOM as soon as I submitted it, and looks like that's not a nice thing to do. Yours Miguel Arroz On 2008/12/12, at 16:52, Miguel Arroz wrote: Hi! I'm having a very weird problem with our file uploader. Most of the times, everything works as it should. But occasionally, with about 5% probability, when I submit, nothing happens. By nothing happens, I mean the browser opens a connection (or at least it says it does) but nothing happens on the server side. Nothing appears on the Apache access (or error) log. No action is called in WO (I believe no request gets to WO at all). I tried to use WebScarab to see what's going on, but I can't reproduce the issue when I have WebScarab between the browser and the server. It seems to always work. This leads me to believe this is some kind of weird http problem, maybe related with the apache module for WebObjects or something like that. Does anyone have a clue? Yours Miguel Arroz ... http://www.survs.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/arroz%40guiamac.com This email sent to ar...@guiamac.com smime.p7s Description: S/MIME cryptographic signature ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: [SOLVED] Re: File upload problem - occasionally nothing happens
I have seen this in Safari only, running against a local Apache. I don't think it is the same problem. Safari looks like it sent something and is waiting, but Apache does not concur. Clicking Submit again works... Chuck On Dec 12, 2008, at 9:09 AM, Miguel Arroz wrote: Hi! Please do forget... apparently it was a race condition in the JavaScript code. I was removing the form from the page DOM as soon as I submitted it, and looks like that's not a nice thing to do. Yours Miguel Arroz On 2008/12/12, at 16:52, Miguel Arroz wrote: Hi! I'm having a very weird problem with our file uploader. Most of the times, everything works as it should. But occasionally, with about 5% probability, when I submit, nothing happens. By nothing happens, I mean the browser opens a connection (or at least it says it does) but nothing happens on the server side. Nothing appears on the Apache access (or error) log. No action is called in WO (I believe no request gets to WO at all). I tried to use WebScarab to see what's going on, but I can't reproduce the issue when I have WebScarab between the browser and the server. It seems to always work. This leads me to believe this is some kind of weird http problem, maybe related with the apache module for WebObjects or something like that. Does anyone have a clue? Yours Miguel Arroz ... http://www.survs.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/arroz%40guiamac.com This email sent to ar...@guiamac.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/chill%40global-village.net This email sent to ch...@global-village.net -- Chuck Hill Senior Consultant / VP Development Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems. http://www.global-village.net/products/practical_webobjects ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Multiple File Upload
IIRC, there is an example of multiple file upload in /Developer/Examples/JavaWebObjects/FileUpload. HTH, Kieran On Sep 2, 2008, at 1:55 AM, Santhosh wrote: Hi, I am using WebObjects 5.4 for my development. In my application I am using WOFileUpload Component. It is taking one file at a time. But here the requirement is to upload many files.(which are of smaller size,say 2mb of maximum) Is there any way to upload multiple files at a time. I don't want to compress and upload. Waiting for u r replies Thanks in advance. Regards, gskmaster ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/kieran_lists%40mac.com This email sent to [EMAIL PROTECTED] ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
Re: Multiple File Upload
You could either use multiple WOFileUpload components, or if you're willing to use Flash you can use SWFUpload (I have a WO component for it, if you'd like it). On Sep 1, 2008, at 10:52 PM, [EMAIL PROTECTED] wrote: Hi, I am using WebObjects 5.4 for my development. In my application I am using *WOFileUpload *Component. It is taking one file at a time. But here the requirement is to upload many files.(which are of smaller size,say 2mb of maximum) Is there any way to upload multiple files at a time. I don't want to compress and upload. Waiting for u r replies Thanks in advance. Regards, *gskmaster* ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
Multiple File Upload
Hi, I am using WebObjects 5.4 for my development. In my application I am using *WOFileUpload *Component. It is taking one file at a time. But here the requirement is to upload many files.(which are of smaller size,say 2mb of maximum) Is there any way to upload multiple files at a time. I don't want to compress and upload. Waiting for u r replies Thanks in advance. Regards, *gskmaster* ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
Re: [OT] Limiting File Upload Sizes
i've successfully implemented the SWFUpload with WO. unfortunately i didn't know how to play nice with all the javascript SWFUpload and WO stuff so i placed the PHP upload feature (which is quite nice with smooth ajax interface) in an inline frame and send the results to a DA for processing / inserting file information into my WOApp. i pass variables into the PHP code to limit upload size, the # of files to upload, path to write, etc... i'll try to clean this up and remove it from my project for sharing. ./james { primaxSTUDIO : http://primaxSTUDIO.com : 513.772.1223 } On Apr 1, 2008, at 4:49 AM, Owen McKerrow wrote: Hi Guys, Thanks for the suggestions. I was after something specifically that stopped the user even trying to upload something so they don't waste time sitting around waiting for something to upload only have it to fail half way through. I will check out Joshua's implementation. Owen McKerrow WebMaster, emlab Ph : +61 02 4221 5517 http://emlab.uow.edu.au - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - I like the way this project has somehow, against all common sense, got itself made. - Peter Jackson, The Lord of The Rings On 01/04/2008, at 3:01 PM, Chuck Hill wrote: On Mar 31, 2008, at 6:46 PM, Miguel Arroz wrote: Hi! The KISS solution: configure the maximum size of a request in Apache itself, using the LimitRequestBody option in the configuration. You should find a way to handle nicely the error pages the user will see when submitting a file too large. This of course depends on your setup, if you are doing the upload using some Ajax trickery or not, etc. If you don't want to use the Apache thing, you should be able to do a streaming upload (stream it to disk) and cut off the copying after a certain point. It should be straightforward to return an error message. Chuck On 2008/04/01, at 02:04, Owen McKerrow wrote: Hi All, Just wondering if anyone has any recommendations on what to use to limit the size of files uses upload. Im currently looking at http://swfupload.org/. has anyone had any experience with it, in particular getting it to play nice with a WOApp ? Or is there something better out there ? Owen McKerrow WebMaster, emlab Ph : +61 02 4221 5517 http://emlab.uow.edu.au - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - As of tomorrow, employees will only be able to access the building using individual security cards. Pictures will be taken next Wednesday employees will receive their cards in two weeks. - Dilbert Quotes Winner, Fred Dales, Microsoft Corp ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/arroz%40guiamac.com This email sent to [EMAIL PROTECTED] Miguel Arroz http://www.terminalapp.net http://www.ipragma.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/chill%40global-village.net This email sent to [EMAIL PROTECTED] -- Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems. http://www.global-village.net/products/practical_webobjects ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/jameslist%40primax.com This email sent to [EMAIL PROTECTED] ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
Re: [OT] Limiting File Upload Sizes
Hi Guys, Thanks for the suggestions. I was after something specifically that stopped the user even trying to upload something so they don't waste time sitting around waiting for something to upload only have it to fail half way through. I will check out Joshua's implementation. Owen McKerrow WebMaster, emlab Ph : +61 02 4221 5517 http://emlab.uow.edu.au - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - I like the way this project has somehow, against all common sense, got itself made. - Peter Jackson, The Lord of The Rings On 01/04/2008, at 3:01 PM, Chuck Hill wrote: On Mar 31, 2008, at 6:46 PM, Miguel Arroz wrote: Hi! The KISS solution: configure the maximum size of a request in Apache itself, using the LimitRequestBody option in the configuration. You should find a way to handle nicely the error pages the user will see when submitting a file too large. This of course depends on your setup, if you are doing the upload using some Ajax trickery or not, etc. If you don't want to use the Apache thing, you should be able to do a streaming upload (stream it to disk) and cut off the copying after a certain point. It should be straightforward to return an error message. Chuck On 2008/04/01, at 02:04, Owen McKerrow wrote: Hi All, Just wondering if anyone has any recommendations on what to use to limit the size of files uses upload. Im currently looking at http://swfupload.org/. has anyone had any experience with it, in particular getting it to play nice with a WOApp ? Or is there something better out there ? Owen McKerrow WebMaster, emlab Ph : +61 02 4221 5517 http://emlab.uow.edu.au - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - As of tomorrow, employees will only be able to access the building using individual security cards. Pictures will be taken next Wednesday employees will receive their cards in two weeks. - Dilbert Quotes Winner, Fred Dales, Microsoft Corp ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/arroz% 40guiamac.com This email sent to [EMAIL PROTECTED] Miguel Arroz http://www.terminalapp.net http://www.ipragma.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/chill% 40global-village.net This email sent to [EMAIL PROTECTED] -- Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems. http://www.global-village.net/products/practical_webobjects ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
[OT] Limiting File Upload Sizes
Hi All, Just wondering if anyone has any recommendations on what to use to limit the size of files uses upload. Im currently looking at http://swfupload.org/. has anyone had any experience with it, in particular getting it to play nice with a WOApp ? Or is there something better out there ? Owen McKerrow WebMaster, emlab Ph : +61 02 4221 5517 http://emlab.uow.edu.au - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - As of tomorrow, employees will only be able to access the building using individual security cards. Pictures will be taken next Wednesday employees will receive their cards in two weeks. - Dilbert Quotes Winner, Fred Dales, Microsoft Corp ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
Re: [OT] Limiting File Upload Sizes
Hi! The KISS solution: configure the maximum size of a request in Apache itself, using the LimitRequestBody option in the configuration. You should find a way to handle nicely the error pages the user will see when submitting a file too large. This of course depends on your setup, if you are doing the upload using some Ajax trickery or not, etc. Yours Miguel Arroz On 2008/04/01, at 02:04, Owen McKerrow wrote: Hi All, Just wondering if anyone has any recommendations on what to use to limit the size of files uses upload. Im currently looking at http://swfupload.org/. has anyone had any experience with it, in particular getting it to play nice with a WOApp ? Or is there something better out there ? Owen McKerrow WebMaster, emlab Ph : +61 02 4221 5517 http://emlab.uow.edu.au - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - As of tomorrow, employees will only be able to access the building using individual security cards. Pictures will be taken next Wednesday employees will receive their cards in two weeks. - Dilbert Quotes Winner, Fred Dales, Microsoft Corp ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/arroz%40guiamac.com This email sent to [EMAIL PROTECTED] Miguel Arroz http://www.terminalapp.net http://www.ipragma.com smime.p7s Description: S/MIME cryptographic signature ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
Re: [OT] Limiting File Upload Sizes
On Mar 31, 2008, at 6:46 PM, Miguel Arroz wrote: Hi! The KISS solution: configure the maximum size of a request in Apache itself, using the LimitRequestBody option in the configuration. You should find a way to handle nicely the error pages the user will see when submitting a file too large. This of course depends on your setup, if you are doing the upload using some Ajax trickery or not, etc. If you don't want to use the Apache thing, you should be able to do a streaming upload (stream it to disk) and cut off the copying after a certain point. It should be straightforward to return an error message. Chuck On 2008/04/01, at 02:04, Owen McKerrow wrote: Hi All, Just wondering if anyone has any recommendations on what to use to limit the size of files uses upload. Im currently looking at http://swfupload.org/. has anyone had any experience with it, in particular getting it to play nice with a WOApp ? Or is there something better out there ? Owen McKerrow WebMaster, emlab Ph : +61 02 4221 5517 http://emlab.uow.edu.au - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - As of tomorrow, employees will only be able to access the building using individual security cards. Pictures will be taken next Wednesday employees will receive their cards in two weeks. - Dilbert Quotes Winner, Fred Dales, Microsoft Corp ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/arroz%40guiamac.com This email sent to [EMAIL PROTECTED] Miguel Arroz http://www.terminalapp.net http://www.ipragma.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/chill%40global-village.net This email sent to [EMAIL PROTECTED] -- Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems. http://www.global-village.net/products/practical_webobjects ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
Browser refresh issue on File Upload...
Hello - I have various file upload pages that work perfectly however, If some hits refresh on their browser after uploading a file it gives them this exception: [2007-02-24 09:30:17 CST] WorkerThread14 java.lang.RuntimeException: Could not create output stream. 'outputStream', or 'streamToFilePath' may have evaluated to null. No Upload performed. Is there a way to trap for this ? - James Cicenia ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to archive@mail-archive.com
Re: Browser refresh issue on File Upload...
Do you have overwrite set on the the file upload? It may be getting an error as the previously uploaded file can be overwritten. You could move it out of the way / delete it after processing the upload. Or you could set a flag when you process the upload. Check this flag in takeValues... and if it is set, do NOT call super. Chuck On Feb 24, 2007, at 7:32 AM, James Cicenia wrote: Hello - I have various file upload pages that work perfectly however, If some hits refresh on their browser after uploading a file it gives them this exception: [2007-02-24 09:30:17 CST] WorkerThread14 java.lang.RuntimeException: Could not create output stream. 'outputStream', or 'streamToFilePath' may have evaluated to null. No Upload performed. Is there a way to trap for this ? - James Cicenia ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/chill% 40global-village.net This email sent to [EMAIL PROTECTED] -- Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems. http://www.global-village.net/products/practical_webobjects ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to archive@mail-archive.com
Re: Browser refresh issue on File Upload...
I believe this exception is actually misleading -- the same thing happens with that UTF8+FileUpload bug. I suspect this is related to the multipart iterator already having consumed the request parts, and it ends up in a weird path in WOFileUpload component that gives this confusing error message. This is just a theory, but I know this exact message occurs under similar circumstances. ms On Feb 24, 2007, at 12:49 PM, Chuck Hill wrote: Do you have overwrite set on the the file upload? It may be getting an error as the previously uploaded file can be overwritten. You could move it out of the way / delete it after processing the upload. Or you could set a flag when you process the upload. Check this flag in takeValues... and if it is set, do NOT call super. Chuck On Feb 24, 2007, at 7:32 AM, James Cicenia wrote: Hello - I have various file upload pages that work perfectly however, If some hits refresh on their browser after uploading a file it gives them this exception: [2007-02-24 09:30:17 CST] WorkerThread14 java.lang.RuntimeException: Could not create output stream. 'outputStream', or 'streamToFilePath' may have evaluated to null. No Upload performed. Is there a way to trap for this ? - James Cicenia ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/chill% 40global-village.net This email sent to [EMAIL PROTECTED] -- Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems. http://www.global-village.net/products/practical_webobjects ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/mschrag% 40mdimension.com This email sent to [EMAIL PROTECTED] ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to archive@mail-archive.com
Re: Browser refresh issue on File Upload...
Hmmm,,, When I look at my logs... I don't see any output besides the error... nothing in the constructor, nothing in the actual upload methods... nothing. - James On Feb 24, 2007, at 1:00 PM, Mike Schrag wrote: I believe this exception is actually misleading -- the same thing happens with that UTF8+FileUpload bug. I suspect this is related to the multipart iterator already having consumed the request parts, and it ends up in a weird path in WOFileUpload component that gives this confusing error message. This is just a theory, but I know this exact message occurs under similar circumstances. ms On Feb 24, 2007, at 12:49 PM, Chuck Hill wrote: Do you have overwrite set on the the file upload? It may be getting an error as the previously uploaded file can be overwritten. You could move it out of the way / delete it after processing the upload. Or you could set a flag when you process the upload. Check this flag in takeValues... and if it is set, do NOT call super. Chuck On Feb 24, 2007, at 7:32 AM, James Cicenia wrote: Hello - I have various file upload pages that work perfectly however, If some hits refresh on their browser after uploading a file it gives them this exception: [2007-02-24 09:30:17 CST] WorkerThread14 java.lang.RuntimeException: Could not create output stream. 'outputStream', or 'streamToFilePath' may have evaluated to null. No Upload performed. Is there a way to trap for this ? - James Cicenia ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/chill% 40global-village.net This email sent to [EMAIL PROTECTED] -- Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems. http://www.global-village.net/products/practical_webobjects ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/mschrag% 40mdimension.com This email sent to [EMAIL PROTECTED] ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/james% 40jimijon.com This email sent to [EMAIL PROTECTED] ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to archive@mail-archive.com
Localization of WO File upload
Hi! We are using WOFile Upload component in our application. Right now, it displays the button, Choose File and the text, no file selected (in case we have not selected any file) in English. We want to localise the the text of the button i.e. Choose File and the text no file selected . Can anyone help me regarding this? Thanks! PS Do you Yahoo!? Everyone is raving about the all-new Yahoo! Mail beta. http://new.mail.yahoo.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to archive@mail-archive.com
Re: Localization of WO File upload
hi PS. as far as i remember the label and text is a given by the users browser. so a german browser should display a german button text. and it may vary fom browser to browser. not absolutely sure. atze Am 30.11.2006 um 19:39 schrieb PS ps: Hi! We are using WOFile Upload component in our application. Right now, it displays the button, Choose File and the text, no file selected (in case we have not selected any file) in English. We want to localise the the text of the button i.e. Choose File and the text no file selected . Can anyone help me regarding this? Thanks! PS Freeport Soliversum Alexander Spohr [EMAIL PROTECTED] www.freeport.de ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to archive@mail-archive.com
Re: File Upload using WOLongResponse
Have same problem, I think we cannot use WOLongResponse, but instead we need to upload the file using a Java client app, of a Flash app. Regards Amedeo On 11/nov/06, at 22:29, Jonathan Miller wrote: Hi, Does anyone have an example on how to upload a file using WOLongResponse? The goal is to have a file uploaded in the background with a progress page being displayed to the user. Thanks in advance Jon ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/amedeo% 40macintossicati.com This email sent to [EMAIL PROTECTED] ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to archive@mail-archive.com
Re: File Upload using WOLongResponse
I think won't work because in Upload are involved the WebServer and the Browser, not the WO App Regards Amedeo On 13/nov/06, at 23:42, Joe Moreno wrote: Here's an option that might work... Since the actual upload has to be completed in a single request response loop, you could also have another window open with a long response page that pings the progress and shows how much has been uploaded with each R/R loop. The WO app would have to stream the bytes to the file system during the upload. - Joe On Nov 13, 2006, at 13:22:10, Amedeo Mantica wrote: Have same problem, I think we cannot use WOLongResponse, but instead we need to upload the file using a Java client app, of a Flash app. Regards Amedeo On 11/nov/06, at 22:29, Jonathan Miller wrote: Hi, Does anyone have an example on how to upload a file using WOLongResponse? The goal is to have a file uploaded in the background with a progress page being displayed to the user. Thanks in advance Jon ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/amedeo% 40macintossicati.com This email sent to [EMAIL PROTECTED] ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/joemoreno% 40mac.com This email sent to [EMAIL PROTECTED] ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to archive@mail-archive.com
Re: File Upload using WOLongResponse
I managed to have the WOLongResponse page working with a refresh bar.I ve always wanted to publish it on wocode or somewhere.Unfortunately I don't have the time to do it right now (extract the code from my app, document etc etc).I think I will be able to release it by the end of the month if someone is interested.Just to give you a hint, the idea is the following :- have frames, one with the form that will be submited (and that will transfer data), one with the progress bar- have the upload process and the progress bar communicate through the session (the idea is based on Jonathan Rothkind code)- the only issue I had is that a user cannot upload several files at the same timeIf anyone is interested, please contact meFabriceOn Nov 13, 2006, at 10:22 PM, Amedeo Mantica wrote:Have same problem, I think we cannot use WOLongResponse, but instead we need to upload the file using a Java client app, of a Flash app.RegardsAmedeoOn 11/nov/06, at 22:29, Jonathan Miller wrote: Hi,Does anyone have an example on how to upload a file using WOLongResponse? The goal is to have a file uploaded in the background with a progress page being displayed to the user.Thanks in advanceJon___Do not post admin requests to the list. They will be ignored.Webobjects-dev mailing list (Webobjects-dev@lists.apple.com)Help/Unsubscribe/Update your Subscription:http://lists.apple.com/mailman/options/webobjects-dev/amedeo%40macintossicati.comThis email sent to [EMAIL PROTECTED] ___Do not post admin requests to the list. They will be ignored.Webobjects-dev mailing list (Webobjects-dev@lists.apple.com)Help/Unsubscribe/Update your Subscription:http://lists.apple.com/mailman/options/webobjects-dev/fabrice%40easyshadow.comThis email sent to [EMAIL PROTECTED] www.easyshadow.comInternational Corporate ConsultingPalais de la Scala1 avenue Henri DunantSuite 1155MC - 98000 MonacoSkype: fabrice.pipartTel. +377 97 98 21 04 (direct)Fax. +377 97 70 88 07 ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to archive@mail-archive.com
Re: File Upload using WOLongResponse
Try this thread:http://www.nabble.com/WOFileUpload,-Apache-and-large-file-t2372458.htmlOn 11-Nov-06, at 1:29 PM, Jonathan Miller wrote:Hi,Does anyone have an example on how to upload a file using WOLongResponse? The goal is to have a file uploaded in the background with a progress page being displayed to the user.Thanks in advanceJon___Do not post admin requests to the list. They will be ignored.Webobjects-dev mailing list (Webobjects-dev@lists.apple.com)Help/Unsubscribe/Update your Subscription:http://lists.apple.com/mailman/options/webobjects-dev/programmingosx%40mac.comThis email sent to [EMAIL PROTECTED] -- It's like driving a car at night. You never see further than your headlights, but you can make the whole trip that way. E. L. Doctorowfrom Sunbeams: http://www.thesunmagazine.org ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to archive@mail-archive.com
Newbie: File upload w/Direct Actions and added parameters
Newbie file upload question: I am trying to upload a file using a direct action and a WOFileUpload component. I can get the file to upload correctly, but my issue is with sending a parameter to the direct action so that it can properly set up the next page and save the file into the database with the right info. The values I need for the file in the database are determined by the page from which the user triggers the upload. So, to use direct actions I think I need to send those values as parameters (bindings to the WOFileUpload or Form) with the upload. I tried binding them to the WOFileUpload and/or the Form with no success (the values don't appear in request().formValues() in the DA). Is there any way to send parameters (custom bindings) with a Direct Action file upload? Thanks!! -Lindsey ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to archive@mail-archive.com
Re: Newbie: File upload w/Direct Actions and added parameters
You can put a WOHiddenField in your form with the value you want to pass ... On May 24, 2006, at 2:53 AM, Lindsey Hotchkies wrote: Newbie file upload question: I am trying to upload a file using a direct action and a WOFileUpload component. I can get the file to upload correctly, but my issue is with sending a parameter to the direct action so that it can properly set up the next page and save the file into the database with the right info. The values I need for the file in the database are determined by the page from which the user triggers the upload. So, to use direct actions I think I need to send those values as parameters (bindings to the WOFileUpload or Form) with the upload. I tried binding them to the WOFileUpload and/or the Form with no success (the values don't appear in request().formValues() in the DA). Is there any way to send parameters (custom bindings) with a Direct Action file upload? Thanks!! -Lindsey ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/mschrag% 40mdimension.com This email sent to [EMAIL PROTECTED] ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to archive@mail-archive.com
Re: Newbie: File upload w/Direct Actions and added parameters
You can pass parameter to the direct actionlook at this code in direct action: public WOActionResults myPersonalAction() { //ending with "Action" in mendatory String theVariable = (String)request().formValueForKey("myvariable"); YourWOComponent nextPage = (YourWOComponent)pageWithName("YourWOComponent"); //replace "YourWOComponent" with the name of your component nextPage.setTheVariable(theVariable); return nextPage; }and you can acccess to the page using this urlhttp://.../myapp.woa/wa/myPersonal?myvariable=try //note myPersonal without "Action"Best RegardsAmedeoOn 24/mag/06, at 08:53, Lindsey Hotchkies wrote:Newbie file upload question:I am trying to upload a file using a direct action anda WOFileUpload component. I can get the file to uploadcorrectly, but my issue is with sending a parameter tothe direct action so that it can properly set up thenext page and save the file into the database with theright info.The values I need for the file in the database aredetermined by the page from which the user triggersthe upload. So, to use direct actions I think I needto send those values as parameters (bindings to theWOFileUpload or Form) with the upload. I tried bindingthem to the WOFileUpload and/or the Form with nosuccess (the values don't appear inrequest().formValues() in the DA).Is there any way to send parameters (custom bindings)with a Direct Action file upload?Thanks!!-Lindsey ___Do not post admin requests to the list. They will be ignored.Webobjects-dev mailing list (Webobjects-dev@lists.apple.com)Help/Unsubscribe/Update your Subscription:http://lists.apple.com/mailman/options/webobjects-dev/amedeo%40macintossicati.comThis email sent to [EMAIL PROTECTED] ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to archive@mail-archive.com
Re: Newbie: File upload w/Direct Actions and added parameters
Thanks for your help! I tried setting a hidden field in the form, but in the direct action, request().formValues() only returns the file from the WOFileUpload component, nothing else. I am confused because I have used Direct Actions for non-fileUpload actions, and parameters (whether they are within a form or set in a hyperlink binding) are passed in the request. Now that I am using a WOFileUpload object inside a form, the other form components and bindings seem to be ignored. Here are my components (notice I tried to pass a parameter in the form as well as the HiddenField): Form2: WOForm { enctype = multipart/form-data; multipleSubmit = true; ?mainphotoid = mainPhotoId; directActionName = ProcessTwinFileUploadAsData; actionClass = DirectAction; } Upload1 : WOFileUpload { filePath = aFileName; data = aFileContents; mimeType = uploadMimeType; name = thefile; } mainphotoid: WOHiddenField { name = mainphotoid; value = mainPhotoId; } This is the result of request().formValues() in ProcessTwinFileUploadAsDataAction: {thefile.filename = (bunny-3c.jpg); thefile = (class com.webobjects.appserver._private.WOInputStreamData (stream [EMAIL PROTECTED] of length 0), has NOT been accessed); thefile.mimetype = (image/jpeg); } The file upload is successful, but no parameter. Any ideas? Thanks! -Lindsey --- Amedeo Mantica [EMAIL PROTECTED] wrote: You can pass parameter to the direct action look at this code in direct action: public WOActionResults myPersonalAction() { //ending with Action in mendatory String theVariable = (String)request().formValueForKey(myvariable); YourWOComponent nextPage = (YourWOComponent)pageWithName (YourWOComponent); //replace YourWOComponent with the nameof your component nextPage.setTheVariable(theVariable); return nextPage; } and you can acccess to the page using this url http://.../myapp.woa/wa/myPersonal?myvariable=try //note myPersonal without Action Best Regards Amedeo On 24/mag/06, at 08:53, Lindsey Hotchkies wrote: Newbie file upload question: I am trying to upload a file using a direct action and a WOFileUpload component. I can get the file to upload correctly, but my issue is with sending a parameter to the direct action so that it can properly set up the next page and save the file into the database with the right info. The values I need for the file in the database are determined by the page from which the user triggers the upload. So, to use direct actions I think I need to send those values as parameters (bindings to the WOFileUpload or Form) with the upload. I tried binding them to the WOFileUpload and/or the Form with no success (the values don't appear in request().formValues() in the DA). Is there any way to send parameters (custom bindings) with a Direct Action file upload? Thanks!! -Lindsey ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/amedeo% 40macintossicati.com This email sent to [EMAIL PROTECTED] ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to archive@mail-archive.com
Re: Newbie: File upload w/Direct Actions and added parameters
Hello Lindsey, Perhaps the hidden field is not inside the form, or inside the same form as is the WOFileUpload? Regards, Mark On May 24, 2006, at 2:35 PM, Lindsey Hotchkies wrote: Thanks for your help! I tried setting a hidden field in the form, but in the direct action, request().formValues() only returns the file from the WOFileUpload component, nothing else. I am confused because I have used Direct Actions for non-fileUpload actions, and parameters (whether they are within a form or set in a hyperlink binding) are passed in the request. Now that I am using a WOFileUpload object inside a form, the other form components and bindings seem to be ignored. Here are my components (notice I tried to pass a parameter in the form as well as the HiddenField): Form2: WOForm { enctype = multipart/form-data; multipleSubmit = true; ?mainphotoid = mainPhotoId; directActionName = ProcessTwinFileUploadAsData; actionClass = DirectAction; } Upload1 : WOFileUpload { filePath = aFileName; data = aFileContents; mimeType = uploadMimeType; name = thefile; } mainphotoid: WOHiddenField { name = mainphotoid; value = mainPhotoId; } This is the result of request().formValues() in ProcessTwinFileUploadAsDataAction: {thefile.filename = (bunny-3c.jpg); thefile = (class com.webobjects.appserver._private.WOInputStreamData (stream com.webobjects.appserver.WOMultipartIterator [EMAIL PROTECTED] of length 0), has NOT been accessed); thefile.mimetype = (image/jpeg); } The file upload is successful, but no parameter. Any ideas? Thanks! -Lindsey --- Amedeo Mantica [EMAIL PROTECTED] wrote: You can pass parameter to the direct action look at this code in direct action: public WOActionResults myPersonalAction() { //ending with Action in mendatory String theVariable = (String)request().formValueForKey(myvariable); YourWOComponent nextPage = (YourWOComponent)pageWithName (YourWOComponent); //replace YourWOComponent withthe nameof yourcomponent nextPage.setTheVariable(theVariable); return nextPage; } and you can acccess to the page using this url http://.../myapp.woa/wa/myPersonal?myvariable=try //note myPersonal without Action Best Regards Amedeo On 24/mag/06, at 08:53, Lindsey Hotchkies wrote: Newbie file upload question: I am trying to upload a file using a direct action and a WOFileUpload component. I can get the file to upload correctly, but my issue is with sending a parameter to the direct action so that it can properly set up the next page and save the file into the database with the right info. The values I need for the file in the database are determined by the page from which the user triggers the upload. So, to use direct actions I think I need to send those values as parameters (bindings to the WOFileUpload or Form) with the upload. I tried binding them to the WOFileUpload and/or the Form with no success (the values don't appear in request().formValues() in the DA). Is there any way to send parameters (custom bindings) with a Direct Action file upload? Thanks!! -Lindsey ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/amedeo% 40macintossicati.com This email sent to [EMAIL PROTECTED] ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/markm% 40onpointsoftware.com This email sent to [EMAIL PROTECTED] ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to archive@mail-archive.com
Re: Newbie: File upload w/Direct Actions and added parameters
Ah yes ... I believe you need to use WOMultipartIterator to get to your other form values ... request.multipartIterator() will give you a WOMultipartIterator which you can use to enumerate the form values. The problem is that with a file upload, it doesn't just load the entire form data in in the same way since it might be HUGE. It allows you the opportunity to grab the streams and write it directly to another location, etc. ms On May 24, 2006, at 3:35 PM, Lindsey Hotchkies wrote: Thanks for your help! I tried setting a hidden field in the form, but in the direct action, request().formValues() only returns the file from the WOFileUpload component, nothing else. I am confused because I have used Direct Actions for non-fileUpload actions, and parameters (whether they are within a form or set in a hyperlink binding) are passed in the request. Now that I am using a WOFileUpload object inside a form, the other form components and bindings seem to be ignored. Here are my components (notice I tried to pass a parameter in the form as well as the HiddenField): Form2: WOForm { enctype = multipart/form-data; multipleSubmit = true; ?mainphotoid = mainPhotoId; directActionName = ProcessTwinFileUploadAsData; actionClass = DirectAction; } Upload1 : WOFileUpload { filePath = aFileName; data = aFileContents; mimeType = uploadMimeType; name = thefile; } mainphotoid: WOHiddenField { name = mainphotoid; value = mainPhotoId; } This is the result of request().formValues() in ProcessTwinFileUploadAsDataAction: {thefile.filename = (bunny-3c.jpg); thefile = (class com.webobjects.appserver._private.WOInputStreamData (stream com.webobjects.appserver.WOMultipartIterator [EMAIL PROTECTED] of length 0), has NOT been accessed); thefile.mimetype = (image/jpeg); } The file upload is successful, but no parameter. Any ideas? Thanks! -Lindsey --- Amedeo Mantica [EMAIL PROTECTED] wrote: You can pass parameter to the direct action look at this code in direct action: public WOActionResults myPersonalAction() { //ending with Action in mendatory String theVariable = (String)request().formValueForKey(myvariable); YourWOComponent nextPage = (YourWOComponent)pageWithName (YourWOComponent); //replace YourWOComponent withthe nameof yourcomponent nextPage.setTheVariable(theVariable); return nextPage; } and you can acccess to the page using this url http://.../myapp.woa/wa/myPersonal?myvariable=try //note myPersonal without Action Best Regards Amedeo On 24/mag/06, at 08:53, Lindsey Hotchkies wrote: Newbie file upload question: I am trying to upload a file using a direct action and a WOFileUpload component. I can get the file to upload correctly, but my issue is with sending a parameter to the direct action so that it can properly set up the next page and save the file into the database with the right info. The values I need for the file in the database are determined by the page from which the user triggers the upload. So, to use direct actions I think I need to send those values as parameters (bindings to the WOFileUpload or Form) with the upload. I tried binding them to the WOFileUpload and/or the Form with no success (the values don't appear in request().formValues() in the DA). Is there any way to send parameters (custom bindings) with a Direct Action file upload? Thanks!! -Lindsey ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/amedeo% 40macintossicati.com This email sent to [EMAIL PROTECTED] ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/mschrag% 40mdimension.com This email sent to [EMAIL PROTECTED] ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to archive@mail-archive.com
File Upload and LongRequest
hello! is possible to handle a file uploading with a LongRequest showing the upload progress status? Thenks Amedeo ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to archive@mail-archive.com
Re: File Upload and LongRequest
I failed with this idea. It can't resume uploading. Just all or nothing. Regards, Gennady Kushnir On 14.04.2006, at 14:52, Amedeo Mantica wrote: hello! is possible to handle a file uploading with a LongRequest showing the upload progress status? Thenks Amedeo ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/genkush% 408ka.mipt.ru This email sent to [EMAIL PROTECTED] ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to archive@mail-archive.com
Re: File Upload and LongRequest
File Upload With Progress Bar (and non-blocking) http://wocode.com/cgi-bin/WebObjects/WOCode.woa/2/wa/ShareCodeItem? itemId=306 Chuck On Apr 14, 2006, at 3:52 AM, Amedeo Mantica wrote: hello! is possible to handle a file uploading with a LongRequest showing the upload progress status? Thenks Amedeo ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/chill% 40global-village.net This email sent to [EMAIL PROTECTED] -- Coming in late 2006 - an introduction to web applications using WebObjects and Xcode http://www.global-village.net/wointro Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems.http://www.global-village.net/products/practical_webobjects ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to archive@mail-archive.com
File upload as longresponse page
Hi list, is there any known implementation for a file upload with a long reponse page, giving feedback for the upload process? The reason i ask (and correct me when i'm wrong!): - browsers do not check the file size - browsers will time out in normal WOFileUpload on files to big - Sessions might time out, when the normal WOFileUpload takes tooo long :-) - Users get bored, uploading large files, getting told file to big. Before WO included WOFileUpload component, there must have been lots of implementations for streaming. Would it help, doing it myself? Any code snippets? And (sorry for asking, might be very dumb :-) ) would i be able to check the file size before streaming up, i.e. to provide progress information? Thanks all! Wolfram ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to archive@mail-archive.com
Re: File Upload
I'm sorry, was permission, but on parent folder! :=) thanks Amed On 24/ott/05, at 19:23, Chuck Hill wrote: I'd be pretty willing to bet that it _IS_ permissions. What exactly did you check and what did you see? Chuck On Oct 24, 2005, at 8:27 AM, Amedeo Mantica wrote: I know I need to subscribe to deploying mailing list... This is my problem.. In developenent enviroment File upload works, when I deploy my application on server the file won't be uploaded, file permission are ok. any suggestion? Thanks ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/chill% 40global-village.net This email sent to [EMAIL PROTECTED] -- Coming in 2006 - an introduction to web applications using WebObjects and Xcode http://www.global-village.net/wointro Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems.http://www.global-village.net/products/ practical_webobjects ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to archive@mail-archive.com
File Upload
I know I need to subscribe to deploying mailing list... This is my problem.. In developenent enviroment File upload works, when I deploy my application on server the file won't be uploaded, file permission are ok. any suggestion? Thanks ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to archive@mail-archive.com
Re: File Upload
I'd be pretty willing to bet that it _IS_ permissions. What exactly did you check and what did you see? Chuck On Oct 24, 2005, at 8:27 AM, Amedeo Mantica wrote: I know I need to subscribe to deploying mailing list... This is my problem.. In developenent enviroment File upload works, when I deploy my application on server the file won't be uploaded, file permission are ok. any suggestion? Thanks ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/chill% 40global-village.net This email sent to [EMAIL PROTECTED] -- Coming in 2006 - an introduction to web applications using WebObjects and Xcode http://www.global-village.net/wointro Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems.http://www.global-village.net/products/practical_webobjects ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to archive@mail-archive.com