+ Start a Discussion
Puja khetanPuja khetan 

Attachment on salesforce Site on lightning

Experts ,
right now we are planning to develop site in salesforce and give user attachment functionality on lightning .
do you think we have any way to provide attachment functionanlity on VF page ?
is yes then how ?
most preferable if can get any option without custom controller on VF page ?

if only option by custom controller then how ?
AbhishekAbhishek (Salesforce Developers) 
https://albasfdc.com/2017/03/13/files-attachments-in-lightning-experience/

The blog has a way to fulfill your requirement, But you need to make minor changes to it.

For further reference,  (https://www.biswajeetsamal.com/blog/tag/attachment/)you can try it.

Let me know if it helps you and close your query by marking it as solved so that it can help others in the future.

Thanks.
ShirishaShirisha (Salesforce Developers) 
Hi Puja,

Greetings!

Yes,you can provide the functionality of uploading the attachments via VF page as a guest user on sites/community.

You can find the sample code in the below thread to implement according to your requirement.

https://developer.salesforce.com/forums/?id=9060G000000I9rNQAS

Kindly mark it as best answer if it helps so that it can help others in the future.

Warm Regards,
Shirisha Pathuri