Media File - Limit to JPG, GIF, PNG ??

Hi folks

When using the right-click to add a file to a media field (in smart client) is there a way to limit the selection to those file types allowed?

I’m pretty sure there is an option to code the save dialog with a filter and save the image like that - but figured there’s probably a faster way in servoy?

Currently it seems like TIFF’s are acepted in the media field but the record save is rejected - very odd when the image stays put but there is no sequence saved for it!

We allow anything to be uploaded in a media field, even if it can not be displayed. If the field is really not saving please make a support case with sample, since the media field currently just thinks in bytes and does not care about mime type.

Jan Blok:
We allow anything to be uploaded in a media field, even if it can not be displayed. If the field is really not saving please make a support case with sample, since the media field currently just thinks in bytes and does not care about mime type.

Thanks then Jan - I shall persevere and see whats causing the lack of save.

Kahuna:
Currently it seems like TIFF’s are acepted in the media field but the record save is rejected - very odd when the image stays put but there is no sequence saved for it!

Are you using MySQL? Did you check the max packet size in my.cnf? Maybe that’s the problem.

ngervasi:

Kahuna:
Currently it seems like TIFF’s are acepted in the media field but the record save is rejected - very odd when the image stays put but there is no sequence saved for it!

Are you using MySQL? Did you check the max packet size in my.cnf? Maybe that’s the problem.

MySQL with Max Packet at 16MB so thats probably not it.

Checked it with PNG, BMP and JPG and alls well. Checked the size of the Tiff’s too and mostly below 250kb so that should not be the issue.

I’m going to rebuild the table as a test to see if using the original MySQL structures (converted the db id to Servoy seq) will solve it.

Thanks Nicola