Welcome Guest, Not a member yet? Register   Sign In
BUG: allowd_type into CodeIgniter Upload Class?
#1

[eluser]dojolab[/eluser]
Hello everybody,

I have a big problem with CI Upload Class.
This is a print_r of data upload:

Code:
Array
(
    [file_name] => 536b2933dfca8c95b199560a5bf6f51d
    [file_type] =>
    [file_path] => ./uploads/
    [full_path] => ./uploads/536b2933dfca8c95b199560a5bf6f51d
    [raw_name] => 536b2933dfca8c95b199560a5bf6f51d
    [orig_name] =>
    [client_name] =>
    [file_ext] =>
    [file_size] =>
    [is_image] =>
    [image_width] =>
    [image_height] =>
    [image_type] =>
    [image_size_str] =>
)

the field of file_type is empty :|
Why?

Thanks for reply.
M.
#2

[eluser]Circuitbomb[/eluser]
because the file being uploaded doesn't seem to be given a type considering the file_name field lacks an extension.
#3

[eluser]dojolab[/eluser]
[quote author="Circuitbomb" date="1290265139"]because the file being uploaded doesn't seem to be given a type considering the file_name field lacks an extension.[/quote]

Any Files?
#4

[eluser]dudeami0[/eluser]
The file_type is derived from the filename. For example "image.jpg" has an extension of jpg, to the file_type is derived off of that. "536b2933dfca8c95b199560a5bf6f51d" has no extension = unknown file type!
#5

[eluser]dojolab[/eluser]
[quote author="dudeami0" date="1290332605"]The file_type is derived from the filename. For example "image.jpg" has an extension of jpg, to the file_type is derived off of that. "536b2933dfca8c95b199560a5bf6f51d" has no extension = unknown file type![/quote]

Sorry but my file have extension Smile
#6

[eluser]Unknown[/eluser]
Can it be that the filename uses non-latin characters?

Also, your dump shows no file extension on the filename (ā€œ536b2933dfca8c95b199560a5bf6f51dā€) -> therefore -> no type.




Theme © iAndrew 2016 - Forum software by © MyBB