Welcome Guest, Not a member yet? Register   Sign In
How to download dxf files(drawing files) using php
#1

[eluser]JasmineFlower[/eluser]
hi,

In my codeigniter having folder(Fence). In one of my php page displays the folder(Fence) files.I gave a link for all these files.I need to download these files with Save As dialog box by click the link.the file format is .dxf format that means AUTOCAD drawing files.

How can i download these files ?
#2

[eluser]InsiteFX[/eluser]
These would need to be added to the application/config/mimes.php file.
Also you may need to have your hosting provider add these on the server mime types.
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'),
// if last in the array remove the last comma!

InsiteFX
#3

[eluser]toopay[/eluser]
After that, you can use download helper : take a look at User Guide




Theme © iAndrew 2016 - Forum software by © MyBB