I have figured out the base of the problem, but I have no idea how to fix it. I have a user configured named files, which has write permissions to /var/www/html/files/ and can write and read fine to it. However, when uploading a file, my apache server gets a 403 forbidden error upon viewing it. To fix it, I have to SSH into my server and chown the directory to the www-data user to see the file. Obviously, I don't want to do this every time I upload an image, since this is very frequently. How to fix?