Question: Keep Getting Error File Not Supported

Keep Getting Error File Not Supported

I keep getting this error "The filetype you are attempting to upload is not allowed." when im trying to do a stock count.

EH

Einnlleinhatt Ha

Asked
I keep getting this error "The filetype you are attempting to upload is not allowed." when im trying to do a stock count.
  • EH

    Einnlleinhatt Ha

    Answered
    I tried it on the demo and my own hosting its working fine. But on my local host it keep saying "The filetype you are attempting to upload is not allowed." I also tried to download the current stock csv file and without opening/editing it, i reupload it it still giving me the same error.

    So my guess is maybe there is some setting on php.ini that wont allow me to upload it. Do you have any idea ?
  • MS

    Mian Saleem

    Answered
    Hello,

    I am not sure but you can try `print_r($_FILES)` and check the mime type of the file. If that is not set for `csv` in the `app/config/mimes.php` then you can add.

    Thank you
  • Login to Reply