Re: WOFileUpload bindings
Re: WOFileUpload bindings
- Subject: Re: WOFileUpload bindings
- From: Chuck Hill <email@hidden>
- Date: Sun, 12 Dec 2004 14:35:16 -0800
The file name / path sent up with the file is browser dependant. It is
your job to deal with as you need. See NSPathUtilities for the easiest way
to get just the file name.
Chuck
At 02:14 PM 12/12/2004 -0800, David Holt wrote:
>Hello all,
>
>I am getting inconsistent behaviour from IE for Windows (inconsistent
>when compared to Firefox or Safari, anyway) when I use this WOExtension
>in WO 5.2.3.
>
>I am uploading documents directly to a database so I am binding "data"
>to the EO document.attachment and the "filePath" to EO
>document.file_path. When using Safari or Mozilla the file stores in the
>BLOB and just the filename ends up in the file_path field. Using IE the
>data ends up in the BLOB, but the filename is set to the entire path to
>the user's document on their file system. When you try and download it,
>it gives the usual WO reference of a bunch of numbers. If you change
>the filename in the Save As dialog, the data is fine and results in the
>document being saved to the user's computer. The behaviour is
>inconsistent only for the filePath binding. If you download a file that
>has been uploaded from a Safari or Mozilla browser the filename is
>displayed correctly in the Save as... dialog.
>
>Should I be using different bindings in the WOFileUpload? Or is there
>something I am overlooking? Is there anyone using this extension with
>Windows to upload documents to a database?
>
>thanks,
>David
>
> _______________________________________________
>Do not post admin requests to the list. They will be ignored.
>Webobjects-dev mailing list (email@hidden)
>Help/Unsubscribe/Update your Subscription:
e.net
>
>This email sent to email@hidden
>
--
Chuck Hill email@hidden
Global Village Consulting Inc. http://www.global-village.net
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden