This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 97032

Summary: No file was uploaded System Messages
Product: updatecenters Reporter: William Leonard <bleonard>
Component: PluginportalAssignee: David Botterill <dbotterill>
Status: RESOLVED FIXED    
Severity: blocker    
Priority: P2    
Version: 6.x   
Hardware: PC   
OS: Windows XP   
Issue Type: DEFECT Exception Reporter:

Description William Leonard 2007-03-02 02:58:32 UTC
Trying to add my plug-in hosted elsewhere, I received a "No file was uploaded"
system message when I pressed Finish. I presume the image uploads failed.
Comment 1 William Leonard 2007-03-02 02:59:23 UTC
Also, when the page fails in this way, it would be nice if it maintained my
input data.
Comment 2 William Leonard 2007-03-02 03:03:54 UTC
It turns out I accidentally selected a PDF for upload. Is there anyway to
restrict the file types shown in the file browser? If not, some validation
should be performed on file extension before submit.
Comment 3 David Botterill 2007-03-02 06:20:39 UTC
I think this is pretty much the same as 96968.  If you think it's different,
please change the status.  Basically the file upload component has no way of
keeping the chosen file in the textfield.  Also I have no way to verify the
contents of a file without doing sophisticated image reading.  If you think I
should verify the file contents, please submit an enhancement request.  

Do you think file extension verification is sufficient?

*** This issue has been marked as a duplicate of 96968 ***
Comment 4 William Leonard 2007-03-02 14:45:41 UTC
I think it's a bit different than 96968. File extension verification would be an
improvement. My problem was the the PDF in question looked like an image in my
file browser (I've attached it - sorry - it's another scary image).
Comment 5 David Botterill 2007-03-05 03:59:10 UTC
I added file extension checking.