kmc Posted February 20, 2014 Share Posted February 20, 2014 I have been using the attached code to process my file uploads with additional info to my mysql db. I stopped uploading the file itself. it is putting the file path in the db just not getting the image anymore. I have looked over it for the past few months and can't figure it out. add.txt Link to comment https://forums.phpfreaks.com/topic/286356-file-upload-problem/ Share on other sites More sharing options...
WebStyles Posted February 20, 2014 Share Posted February 20, 2014 oh man... there's so much redundancy in that script... you're uploading into a structure like this: 'images/$companyname/$materialdir/$prefix$modelnumber.jpg'Are you sure the directories exist and are writeable? (if there was a migration or a server upgrade, sometimes the folders can get their attributes changed) Link to comment https://forums.phpfreaks.com/topic/286356-file-upload-problem/#findComment-1469772 Share on other sites More sharing options...
kmc Posted February 21, 2014 Author Share Posted February 21, 2014 Thank you, Thank you That was it. file permissions. It is always the one thing that you forget to look at. Link to comment https://forums.phpfreaks.com/topic/286356-file-upload-problem/#findComment-1469900 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.