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
Katie KourtakisKatie Kourtakis 

Lightning Web Component for Drag-and-Drop Profile Picture

Hi, I have been searching around to see if there is example code for creating a drag-and-drop profile picture using lignthing web components. I came across this link (https://developer.salesforce.com/blogs/developer-relations/2015/11/create-lightning-component-drag-drop-profile-pictures.html) from 2015 which uses aura components. Is this possible with lightning web components now or do I resort to aura components?

Thanks,
Katie
VinayVinay (Salesforce Developers) 
Hi Katie,

You can use aura components in your use case.

However, if you are looking for File Upload in Lightning Web Component below references.

https://www.sfdcpoint.com/salesforce/file-upload-in-lightning-web-component/
http://santanuboral.blogspot.com/2019/09/LWC-drag-n-drop-pub-sub.html

Thanks,
Vinay Kumar