cancel
Showing results for 
Search instead for 
Did you mean: 

media - don't allow reupload/override

akuller_q
Participant
0 Kudos

Hello all,

is it possible with an annotation to prevent overwriting files and deleting them?

With insertonly and grant I always failed at the PUT. PUT is used for both create and override, see doc: https://cap.cloud.sap/docs/guides/media-data

Many thanks and greetings

View Entire Topic
marcel_schwarz
Advisor
Advisor

Hi akuqb,

it is not currently possible to prevent overwriting or deleting of media files using annotations. However, instead a custom handler can be used to implement this functionality. In the custom handler you can check whether a media file has already been created and reject subsequent requests that try to update or delete the file.

Best regards,

Marcel

akuller_q
Participant
0 Kudos

Hi marcel.schwarz,

is there an alternative fiori elements annotation to remove the upload and delete buttons?

In my case there is a table in which information about certificates are stored, as well as the certificate itself. There it is not very nice, if someone deposits a wrong certificate. Or the buttons are still there and confuse the user.

happy and healthy new year

many greetings