photo uploading works on user and posts