I have a "portal" with users (about 1000 users), which are stored in "users" table in sql database. I would like to create and image upload engine, where user can upload own profile photo. How can I do that?
I need to
create a form with mimetype and file input
besafe that uploaded file is image in .jpg or .png
there will be no resizing and no cropping, just take an image and save it as it is
Is possible to save that files to public/ folder?
And I need to update a row in "user_profiles" table, to be able to reuse the image everywhere