CodeIgniter Forums

Full Version: i cant upload any thing except picture
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3

El Forum

[eluser]Sara rad[/eluser]
hi Smile

i want upload psd , zip , rar , cdr and ai formay but i cant do this .

im set allowed types to :

Code:
$config['allowed_types'] = 'psd|zip|rar|cdr|ai';

but this dont work . :-S

sorry for my bad english . :zip:

any help !?

thanks

El Forum

[eluser]NeoArc[/eluser]
Hmm.. I don't know. Make sure you don't set a width or height limit.

El Forum

[eluser]Sara rad[/eluser]
ops ! for this types i must set width and height ?

El Forum

[eluser]NeoArc[/eluser]
Nope. Check the configuration array, and make sure the upload path is valid.
If you are using Linux, check the directory permissions

El Forum

[eluser]Sara rad[/eluser]
every thing is ok , showed error is for not allowed types .

El Forum

[eluser]NeoArc[/eluser]
Hmm. Sometimes the configuration array is overwritten when copying code, and the values are lost : )

(Check if ['allowed_types'] is being overwritten)

El Forum

[eluser]danmontgomery[/eluser]
[quote author="Sara rad" date="1300220128"]every thing is ok , showed error is for not allowed types .[/quote]

So we've established what the error isn't, any interest in sharing what it is?

El Forum

[eluser]Sara rad[/eluser]
Error : The filetype you are attempting to upload is not allowed.

El Forum

[eluser]bubbafoley[/eluser]
make sure the file type you are trying to upload is in application/config/mimes.php

'rar' and 'cdr' are NOT in the mimes config.

You can also do:
Code:
$config['allowed_types'] = '*';

but that's not exactly ideal.

El Forum

[eluser]Sara rad[/eluser]
i cant upload any thing except picture ! i test zip file but my script can't upload this type of files too .
Pages: 1 2 3