Open foobarlab opened 11 years ago
A huge improvement would be to separate the upload form depending on the file type uploaded. So it would be avoided to have to use the same fields for all mime-types.
For example the user could select the type of data to upload, or even better the user just uploads the first file. If it is an image then it would be allowed to add more images to create a multiframe swf.
Additionally it would be handy to also allow avi-files or gif-animations to be converted to swf by swftools.
On the 'Media add' tab there is for some media the possibility to upload multiple files. If more than one swf is uploaded the 'add' fails. This is due the fact that there can only be a single swf (which could already be 'multiframe').
There should be a more descriptive error message when this happens. Also it may be avoidable in the user interface before uploading by checking the data before posting. Maybe it would also be better to not select the number of frames but to allow further frames when there was one added previously. On this level there could have been a check what kind of mime-type was added.
Alternatively the accept-mimetype 'application/x-shockwave-flash' for fields other than the first should be denied.