Ok. Video just Works! I've added the mime type to the config xml file and now the DSM-320 plays it, no problem.
Photos, was supposed to be simple, but doesn't work. Added the mime type for Jpeg, but photos are always mime type application/octet-stream. Strange...
is there a way to install the full filemagic package on the NSLU2?
as for the picture problem: well, try file -i yourpicture on the PC and see what it really is;
but generally speaking you can fix this same as with video files; set the extension to mimetype mappings in the config.xml and reimport the media
Ok, Found the problem.
I'm coping my media from my portable that has Windows. I'm using the NSLU samba server. The problem is that the file extensions are upper case, JPG instead of lower case: jpg.
So making the mime type as uppercase it works, but it's impossible to have two equal mime types, one lower and one upper.
The file processor should be case insensitive...
well, yes, we already thought about making case sensitivity as an optional parameter for that, you got a point there.
however, you should be able to use both mappings
"JPG"->"image/jpeg" and "jpg"->"image/jpeg", that really did not work?
Well, if I map the two mime types (jpg and JPG), the web page doesn't load. The center frame just get's blank.
I'll have a go again to check if it's not my fault.
uhm.. that's really strance.. does the log say anything?
I added MP3 and mp3 here just for testing - works fine.
<map from="mp3" to="audio/mpeg"/>
<map from="MP3" to="audio/mpeg"/>
please check the log for errors.. if there are none we will have to do some more investigation, thanks!
crap.. can't post XML fragments here, they get escaped :)
Well it is working now...
Probably I did something wrong.
Log in to post a comment.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.