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 Quote Link to comment 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) Quote Link to comment Share on other sites More sharing options...
Solution kmc Posted February 21, 2014 Author Solution 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.