file attachment in concrete

Permalink 1 user found helpful
Hi
I could not find the file attachment option in /helpers/form.php
if the concrete have the file attachment option please share to me..




regards
Kumar

 
nebuleu replied on at Permalink Reply
nebuleu
shankumars replied on at Permalink Reply
this line add in my single page

<?php $al = Loader::helper('concrete/asset_library'); ?>
<?php echo $al->file('testFileAttach')?>


yeah its working but it choose file goes to file manager.

I dont want this, i want choose the file attachment from my computer or my system location... this is posible or any other suggestion...


thanks
Kumar
nebuleu replied on at Permalink Best Answer Reply
nebuleu
In the case you do not want to use the files manager for uploading, you probably have to deal directly with Loader::library('file/importer');
http://www.concrete5.org/documentation/developers/files/importers...

An example of "manual" file import with the $form->file widget and the file importer library :
http://www.concrete5.org/documentation/recorded-trainings/single-pa...
shankumars replied on at Permalink Reply
thanks @neblueu
Kumar
JohntheFish replied on at Permalink Reply
JohntheFish
My front end file uploader addon may help with part of your problem. Its very convenient for uploading files into sets or into a specified fileID.

So once you had the display for a file set or file id sorted out, you could use front end file uploader to populate or add to a set or replace a file (but not remove files - you still need the file manager for that)