Welcome Guest, Not a member yet? Register   Sign In
How can I upload autocad files (.dwg,.dxf,.dwf etc) .
#1

[eluser]sp6hitech[/eluser]
I added following lines
Code:
'dwf' => array('drawing/x-dwf', 'model/vnd.dwf'),
'dwg' => array('application/acad', 'image/vnd.dwg', 'image/x-dwg'),
'dxf' => array('application/dxf', 'image/vnd.dwg', 'image/x-dwg')
in
Code:
/system/application/config/mimes.php
file and tried to upload .dwg file. It showed an error like this: The filetype you are attempting to upload is not allowed. How can i then upload a .dwg file?
#2

[eluser]Unknown[/eluser]
i am using this following code to upload any type of file from the controller after defining in the mimes.php
use * in allowed types
$filedata = array(
'allowed_types' => '*',
'upload_path' => $this->folder_path,
'max_size' => 20000
);
#3

[eluser]sp6hitech[/eluser]
i need to allow the users to upload autocad files only.
#4

[eluser]sp6hitech[/eluser]
Those mime types simply didn't work for me. I used "application/octet-stream" and tried, it worked !
#5

[eluser]Mauricio de Abreu Antunes[/eluser]
Use allowed types in config.php. Smile




Theme © iAndrew 2016 - Forum software by © MyBB