-
ServletFileUpload, name = null
I upload a File with ServletFileUpload.
the fileitem is ok, but the name of the item is null.
The result of item.getFieldname is 'file1'
I want to get the filename to be able to also store he mimetype of the file.
Please, do anyone knows what I can do?
-
have you tried your application with another browser?
usually what information is submitted to the server depends on the browser.
btw: you can determine the mime/filetype by reading the first 4 or 6 bytes from the submitted data. this usually contains the fileheader and thus the filetype.
Similar Threads
-
Replies: 4
Last Post: 04-14-2006, 09:09 AM
-
By Billkamm in forum Database
Replies: 0
Last Post: 01-30-2006, 02:54 PM
-
By Colin McGuigan in forum Database
Replies: 12
Last Post: 04-15-2002, 07:43 AM
-
Replies: 1
Last Post: 11-27-2001, 06:53 AM
-
By Bob Hines in forum Database
Replies: 7
Last Post: 04-27-2000, 11:14 AM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks