Bug 275141 - [Upload] FileOutputStream is null if upload triggered from a Workbench Action
Summary: [Upload] FileOutputStream is null if upload triggered from a Workbench Action
Status: RESOLVED WONTFIX
Alias: None
Product: RAP
Classification: RT
Component: RWT (show other bugs)
Version: 1.2   Edit
Hardware: All All
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: needinfo
Depends on:
Blocks:
 
Reported: 2009-05-06 09:01 EDT by Hasan Ceylan CLA
Modified: 2011-10-10 17:52 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Hasan Ceylan CLA 2009-05-06 09:01:29 EDT
Build ID: 3.5.M6

Steps To Reproduce:
1. Create a view with an upload widget in it
2. Create an action either attached to view or at the coolbar.
3. Trigger the upload from the action

Result you get the stream as null on the serverside.


More information:
As a work around I put a button next to the upload button and this way it works as normal. I get the file stream properly.

Regards,
Hasan Ceylan
Comment 1 Ivan Furnadjiev CLA 2009-05-14 09:36:35 EDT
Hasan, can you provide a self running snippet/project that demonstrate the problem?
Comment 2 Hasan Ceylan CLA 2009-05-14 11:02:05 EDT
Hello Ivan,

Thanks for taking care of this. But the problem is I am stacked up for the following two weeks.

If you like you can assign the bug to me and I get back to the issue then.

as an alternative, if you like, I can send the code fragments right now. 

Hasan
Comment 3 Stefan Röck CLA 2009-05-18 08:47:28 EDT
The upload demo project has a button that triggers a FileUpload by calling Upload#performUpload(). I just tested it with IE and FX and it works there.
So, a snippet would be fine to reproduce this behavior.
Comment 4 Ralf Sternberg CLA 2011-10-10 17:52:34 EDT
The upload widget is obsolete and will be removed in the future. Use the new FileUpload widget or the FileDialog implementation from the incubator instead.