CodeIgniter Forums
Upload Library & PSDs - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: Upload Library & PSDs (/thread-11433.html)



Upload Library & PSDs - El Forum - 09-08-2008

[eluser]danphilibin[/eluser]
I'm having trouble uploading PSDs with the upload library. GIFs, JPEGs, PNGs, and ZIPs all work fine, but the PSD won't upload. I've searched through the forums, talked to a few other developers, and played around with it for hours, but alas, it still won't work.

Here is my upload function: http://pastie.org/268475

And here is the form that's being used: http://pastie.org/268477

I'm pretty sure it isn't a problem with the mime types, as previously noted in the forums, but maybe I'm wrong - that type of thing isn't my specialty.

Thanks.

-dan


Upload Library & PSDs - El Forum - 09-08-2008

[eluser]esra[/eluser]
You might try experimenting with all of the PSD mime types or try adding them all to the mime.php file. Visit this site:

http://filext.com/file-extension/PSD


Upload Library & PSDs - El Forum - 09-08-2008

[eluser]danphilibin[/eluser]
No - I added them all and it still won't upload.

Code:
'psd'    =>    array('application/x-photoshop', 'image/photoshop', 'image/x-photoshop', 'image/psd', 'application/photoshop', 'application/psd', 'zz-application/zz-winassoc-psd'),