Re: FileUpload Problem?
Re: FileUpload Problem?
- Subject: Re: FileUpload Problem?
- From: Alexandra Milton <email@hidden>
- Date: Thu, 22 Jul 2004 20:08:02 +0200
Actually, I posted almost the same question a week ago. However, I have
got no answer at all from the list so I guess the question is either
too difficult or a bit stupid :)
Anyway, I have a few clues. Since the WOFileUpload element can not have
the "data" and "value" binding set at the same time it means that the
actual rendered HTML-code does not have "value"-property set either.
As I said in my post I might also have something to do with how the
formValues() method in WORequest is being handled in WO 5.2. For more
info see:
http://developer.apple.com/documentation/WebObjects/WhatsNew5.2/
WhatsNew/chapter_1_section_5.html
Since being able to edit an uploaded file seems rather basic I wonder
if there are any clever ideas on how to implement this in a flexible
way. Maybe it is best practise to always have different objects for
NSData content and String content and link them with relations instead?
For those who want to try it out "live" please have a look at my small
testapp:
http://ir.rfsl.se/cgi-bin/WebObjects/uploadtest.woa/
The code is available here:
http://ir.rfsl.se/UploadTest.zip
Regards,
Alexandra
2004-07-22 kl. 07.38 skrev Kevin Xiaowen Ren:
HI, All,
I have WORepetition with list and item, for every item I want to link
one pdf file or not.
Item has relationship to link data object.
The problem is only the last item could use WOFileUpload to link some
data(pdf file), The item above the last one could not upload file.
I try to print out selected item in my uploadFile action(method), the
item is right, but couldn't print out filePath and fileData.length is
0.
What can I do? Is it bug for OWFileUpload?
OR I have to open another page to upload single file to selected item?
thanks
kevin
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.