function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
TUSHAR_MATHURTUSHAR_MATHUR 

Where are the files uploaded by custom file uploader component

Hi all, I just seen that lightning:fileupload won't work on lightning out or standalone apps. i have seen a code for custom file upload using apex .
but i can't see the files where those files has been uploaded here is the link from where i get it to learn. please help me .
Thanks
Custom File Uploader (https://sfdcmonkey.com/2017/09/25/file-upload-lightning-component/)
Best Answer chosen by TUSHAR_MATHUR
TUSHAR_MATHURTUSHAR_MATHUR
Hi Abhinav thanks for response,
yes you are absolutely right .i already included that parent id as my custom objects record id. yes in account it will work,  but not for other objects .
Work around to this is just goto your custom object and then just edits its page layout and then in related list just add notes and attachments and its done. Now you will see it in  that record which is from custom object. 

All Answers

AbhinavAbhinav (Salesforce Developers) 
Hi Tushar,

Have you cheked through Files tab??

Please refer this link

https://help.salesforce.com/articleView?id=sf.collab_files_using.htm&type=5

If it helps please mark it as best answer.

Thanks!
TUSHAR_MATHURTUSHAR_MATHUR
Yes i checked but there are only those files which are uploaded by my another lightning component which includes lightning:fileuploader component and integrated through quick actions in page layouts.
But,I want to see those files which are uploaded by  my custom file uploader component as referred above.
Thanks for your quick response.
AbhinavAbhinav (Salesforce Developers) 
Hi Tushar,

In the link they have mentioned 

"In the above lightning component on line number 10, we have a attribute called ‘parentId’ , in this attribute you have need to set the parent id, in in sample i am using the account id.
see code comments.


They have hardcoded Id of account. You just provide your accountId there.And after upload you will find you files in Notes and Attachement related list of that account. It worked for me.

If it helps please mark it as best answer.

Thanks!

 
TUSHAR_MATHURTUSHAR_MATHUR
Hi Abhinav thanks for response,
yes you are absolutely right .i already included that parent id as my custom objects record id. yes in account it will work,  but not for other objects .
Work around to this is just goto your custom object and then just edits its page layout and then in related list just add notes and attachments and its done. Now you will see it in  that record which is from custom object. 
This was selected as the best answer
AbhinavAbhinav (Salesforce Developers) 
Great!! Yes If Notes and Attachement are already not added to layout.
Gordon RamsayGordon Ramsay
Thanks for the instructions
I have done it (https://www.thesingularkitchen.com/) successfully