2. The only other option is for the upload library to set a more specific the content type based on the file extension. Even in this case you would need to formally identify the file server-side, since there is no guarantee that this type is correct.
3. You'll have to provide more details, such as code, file-uploader "version", etc On Sep 9, 2012 3:47 AM, "Amr Mohamed Mahmoud Hassanien" <amr.hassan...@ey.ae> wrote: > Dear Taha, Tapestry users, > > I checked out the Ajax upload for tapestry, that Taha thankfully made it > from the file upload component. > > http://tawus.wordpress.com/2011/06/25/ajax-upload-for-tapestry/ > > I have some problems with the component if anyone can help: > > > 1. I have changed the code to fit in my Tapestry 5.1 project, All > works fine but the method onRemoveUpload() of AjaxUpload.java > > void onRemoveUpload(@RequestParameter("serverIndex") int serverIndex) > { > ... > } > > The RequestParameter annotation does not exist in tapestry 5.1 . I thought > in Tapestry 5.1 it works by just removing the annotation but it didn't work. > > > 2. I use this component to upload video files, mainly, so as part of my > validation I have to check the MIMETYPE, The content type of the file is > always application/octet-stream , Is there any work around this? > > 3. I 've learned that the component switches automatically to iframe > for non-ajax upload supporting browsers like IE, I am using IE8 and the > component is not showing up at all. Do you have any idea why? > > Please if anyone could help in any of these points , kidly reply to my > email > > Thanks and Regards, > > Amr Hassanin >