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

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: FileUpload Problem?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


References: 
 >FileUpload Problem? (From: Kevin Xiaowen Ren <email@hidden>)

  • Prev by Date: Deadlock
  • Next by Date: Re: Are Apple's Java docs any good?
  • Previous by thread: FileUpload Problem?
  • Next by thread: Re: FileUpload Problem? [Solved]
  • Index(es):
    • Date
    • Thread