Hello guys,
how can I force the user to only upload images in the BLOB field if it is a PNG file?
Do you have an idea how I can achieve this?
Thank you.
Hello guys,
how can I force the user to only upload images in the BLOB field if it is a PNG file?
Do you have an idea how I can achieve this?
Thank you.
Hello,
thank you very much for your help.
Meanwhile I have created some code, that ensures that the user can only upload images of type PNG. But the problem here is that I use the data type Blob as field and if you click on the field in the page to upload an image, the default logic comes here. As soon as one apparently deposits a field of the type Blob and of the subtype Bitmap, standard functions are always run through. Only after I have then uploaded an image via the standard, next comes my window with the upload only for PNG images. Can I switch off the standard logic somehow? My logic is always later...my code is passed through, in the OnValidate trigger of the new field "Image".
Hi, I think what Inge means is that when you upload a file, judge whether it is a PNG from the File Name, and if it is not, an error will be prompted.
Of course this requires customization, not a standard feature.
For example,
Hope this helps.
Thanks.
ZHU
Ok, the table is 156 and the page 76. Where should I test this?
I guess the easiest way will be do a check on the filename that the user is trying to upload.
But the actual code will depend on what table / page you are working on.
André Arnaud de Cal... 291,735 Super User 2024 Season 2
Martin Dráb 230,466 Most Valuable Professional
nmaenpaa 101,156