Welcome Guest, Not a member yet? Register   Sign In
i cant upload any thing except picture
#1

[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
#2

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

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

[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
#5

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

[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)
#7

[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?
#8

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

[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.
#10

[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 .




Theme © iAndrew 2016 - Forum software by © MyBB