Quantcast
Channel: Secure image upload class - Code Review Stack Exchange
Browsing all 3 articles
Browse latest View live

Answer by Elias Van Ootegem for Secure image upload class

UpdateAfter a quick look at your updated github code, one thing that struck me as quite odd was line 94:if(!substr(sprintf('%o', fileperms($uploadFileTo)), -4) != 0777)In order for a file to be...

View Article



Answer by cHao for Secure image upload class

Using static methods is not appropriate if your only good reason for doing so is performance. I can confidently say that outside of a benchmark, neither you nor anyone else will ever notice the...

View Article

Secure image upload class

Last night I made this image uploading class. It was the first time I made a file uploader to be used on a real site, so I thought I would share it here and on Github to get some reviews, hoping if I...

View Article
Browsing all 3 articles
Browse latest View live




Latest Images