JagjeetSingh
Kilo Sage
Kilo Sage

If you are looking to allow guest users to add attachments on record producer or catalog item. Check out my solution on below link.

Attachments for Guest Users || Catalog Items & Record Producer

The widget uses GlideSysAttachment API to create and delete attachments for guest users.

Features:

  • Guest users can add attachments to record producers/Catalog items.
  • The customized section is only visible to guest users. Logged in user continues to use the OOB functionality.
  • Admin can control the file extensions allowed for guest users.
  • Attachment size limit is set to 5 MB but can be changed.
  • User can remove attachments as well.
  • Multiple attachments can be loaded at once.
  • Loaded attachments are associated with created record.
  • The widget uses GlideSysAttachment API to add and delete attachments.
  • Works both in scoped and global apps.

Acknowledging the help taken from below community thread:

https://community.servicenow.com/community?id=community_question&sys_id=45de4f61dbdcdbc01dcaf3231f96...

Preview:

find_real_file.png

 

Leave your thoughts in comments.

 

 

 

 

Comments
Maik Skoddow
Tera Patron
Tera Patron

Interesting solution, but did you consider the consequences?

It would be very easy to launch a script-based attack that floods your instance with requests and file attachments.

At the very least, you should point out that a captcha should be built in for guest users to make sure that a human and not a machine is performing the upload.

Kind regards
Maik

JagjeetSingh
Kilo Sage
Kilo Sage

Thank you for pointing that out Maik.

I'll add this in the project description on developer portal. Here everyone is going to read your comment anyways. 😄

 

 

JagjeetSingh
Kilo Sage
Kilo Sage

I am working on next version with Google reCAPTCHA enabled for public users. Stay tuned.

 

Sails
Kilo Sage

hey, this is a great feature.

Have you been able to get the Google reCAPTCHA integration

JagjeetSingh
Kilo Sage
Kilo Sage

Yeah I did that but lost my progress because my PDI was reclaimed. I am again going to build that part.

 

TStark
Kilo Sage

Yes, PLEASE let us know when you get the reCAPTCHA working!

KimAlsgaard
Tera Contributor

@JagjeetSingh Did you ever get the Google reCAPTCHA to work? 🙂

Version history
Last update:
‎01-21-2022 05:25 AM
Updated by: