~Alexis OpresamanMar 1, 2012, 12:38 PM129 PostsRe: File Upload control - How to specify to accept certain movie files?You might have to add the MIME types to the server httpd file, so that the server can correlate extension and file type. Example for Office file types: http://dontpanic82.blogspot.com/2009/06/serving-correct-mime-types-for-office.html
~Wei PretookonyakoiMar 1, 2012, 2:46 PM178 Postswell its not about opening files, but for uploading...
~Mark BubnizenMar 1, 2012, 8:38 PM170 PostsRe: File Upload control - How to specify to accept certain movie files?Perhaps you need to add these types to the file identifications beneath the web section in the name and adressbook?I think you will get octet stream if the server don't recognize the upload. That is some kind of generic type. /Fredrik http://www.xpagedeveloper.com
~Rex UmremanMar 4, 2012, 4:49 PM272 PostsRe: File Upload control - How to specify to accept certain movie files?Hi, it is the browser who sends the mime type of the uploaded file to the server. If the browser is unable to identify the file (normally done via the file extension), the content type of the uploaded data is "application/octet-stream" by default. The file upload control is just checking this content type of the uploaded form data; if a users changes the file extension, he would be able to upload a "not allowed" file. The restriction would not work anymore. Hope this helpsSven http://blog.hasselba.ch
~Wei PretookonyakoiMar 5, 2012, 9:37 PM178 PostsRe: File Upload control - How to specify to accept certain movie files? I guess most major browsers (chrome, firefox, ie) do not know how to identify .flv files then..?
~Rex UmremanMar 6, 2012, 6:42 AM272 PostsRe: File Upload control - How to specify to accept certain movie files?If there is no handler for a .flv file installed (aka flash plugin), the file will not be identified. Browsers are not consistent in their mime-types, so you will never catch all the possible combinations of types for any given file format. And the information your application will receive is useless. If someone wants to upload an .exe-file he could change the extension to .avi and would be able to do so. Sven http://blog.hasselba.ch
~Wei PretookonyakoiMar 6, 2012, 12:06 PM178 Postsany swf file uploader to recommend? thanks Sven! do you got any swf file uploader which you can recommend and/or code how to integrate it with xpages?