abhishek009's avatar

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 ?

  1. Get image from user and check if it is image or not.
  2. Check if image is too small or too big.
  3. Restrict oversized image.
  4. Compress image size.
  5. Resize image.
  6. Upload image to cloud.
  7. Also generate thumbnail of image with original image.

Do I need to perform any other operation ?

0 likes
5 replies
abhishek009's avatar

Yes that is true. Remove old image if there is one.

Anything else ?

Snapey's avatar

Don't do it until you have played around with Livewire - its file upload functionality simplifies a lot of this.

1 like

Please or to participate in this conversation.