Upload library - file not uploading - Need help debugging |
Hi guys
I'm having some trouble with the uploading class My config/upload.php Code: $config['upload_path'] = '/home/kike/www/servijus/_files/'; And I'm "debugging" with these lines in my Excelupload controller Code: $this->load->library('upload'); I guess that If upload->data() is called and the values show fine, file upload was correct, right? My problem is that I don't see the file in the "_files" folder, which has chmod 777. Also, disabling "detect_mime" config does not work PS: sometimes I get the The filetype you are attempting to upload is not allowed. message but I have this in config/upload.php Code: $config['allowed_types'] = 'xls|xlsx|csv|ods'; Update: Seems an error related to file_type => "application/cdfv2-corrupt" error that can be seen in the image above. I've created a new excel file from scratch, uploaded, and worked Just wonder how to solve that application/cdfv2-corrupt thing, because the other xls files can be opened correctly
Enrique
https://beza.com.ar
This may have something to do with how the file is being created:
https://phpexcel.codeplex.com/discussions/286296 (this link is just an example, several similar results can be found by searching for application/cdfv2-corrupt xls) (04-14-2015, 12:04 PM)mwhitney Wrote: This may have something to do with how the file is being created: That thread you point is the only result I can find, but well, at least I know that the problem is the way that those files are being generated. The thing is that I thought I could avoid or force the upload without this mime checking, but the only way possible is by setting allowed_types = '*', which is not an ideal thing
Enrique
https://beza.com.ar |
Welcome Guest, Not a member yet? Register Sign In |