How would you add the functionality of allowing data uploads in the form of pictures? What kind of structure should be used by the server to store the pics? Assume the server is LAMP based. Thanks!
on 01/22/2012 – Made popular on 01/22/2012
I'm having an issue with file uploads. I'm trying to upload pictures to my website, but the pictures don't seem to upload. My sister can upload pictures just fine from her Kubuntu computer. I have verified that the problem isn't on the website. Could this be a firewall issue?
Brief: I need to use custom field for entering the image name (i.e. pic0001.jpg) and showing on some custom page templates, and for end user's simplicity, I disabled "Organize my uploads into month- and year-based folders" option, so that all the images are uploaded to the "uploads" folder directly, no sub folders. The problem is - now, there are over 8000 files in it.
I am trying to migrate my wordpress website from CentOS based server (Hostgator) to Ubuntu 14 based one (Digital Ocean) using backupbuddy plugin. The backup goes fine but the backup file push to Ubuntu server times-out after partial uploading (less than 450 MB of the total 2.3 GB backup)
Is there a limit to the filesize for uploads here or am I doing anything wrong?
I always gave to the webserver user full permissions on these dirs:
But now I am wondering if the uploads part is 0K. I was thinking that maybe it would be better if I use a .tmp file for each upload, and then put them in a queue to be moved to uploads/, and do the same for deletions (the queue will be read and validated by a different user).