Uploading a profile picture.
I'm going to implement user profile picture upload on my website.
What should I keep in mind before I upload it to cloud ?
- Get image from user and check if it is image or not.
- Check if image is too small or too big.
- Restrict oversized image.
- Compress image size.
- Resize image.
- Upload image to cloud.
- Also generate thumbnail of image with original image.
Do I need to perform any other operation ?
Yes that is true. Remove old image if there is one.
Anything else ?
Don't do it until you have played around with Livewire - its file upload functionality simplifies a lot of this.
@snapey What it has to do with Livewire ?
Please or to participate in this conversation.