- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-14-2023 05:57 AM
Hello,
i have an requirement to restrict the file size and file type when user uploads the file in a catalog item. I want this restriction for a particular catalog item hence i cannot use system properties.
I believe this could be achieved using script, but i am unaware how and what to do
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2023 12:56 AM
Hello @Naman Jain2
you can achieve this using before Insert Business rule on sys_attachment and add you're catalog condition in BR condition filed which will allow BR Tobe triggered only when you're condition meet.
rest of the logic you can add in script. like check the attached file byte if its greater then abort() else save attachment.
I hope this will resolve you're issue. If its resolve you're issue them please mark this as Helpful.
Thanks
Aniket
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2023 12:56 AM
Hello @Naman Jain2
you can achieve this using before Insert Business rule on sys_attachment and add you're catalog condition in BR condition filed which will allow BR Tobe triggered only when you're condition meet.
rest of the logic you can add in script. like check the attached file byte if its greater then abort() else save attachment.
I hope this will resolve you're issue. If its resolve you're issue them please mark this as Helpful.
Thanks
Aniket