This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

AcmeGareth
AcmeGareth

I have a problem which I cannot seem to resolve, I am uploading multiple files on the frontend but I need to get the paths of these files so that I can download the files in another program.

My model looks like this:

public $attachMany = [ 'fileuploader' => 'System\Models\File' ];

Then I tried something silly like this on the component:

$quote->fileuploader = Input::file('fileuploader');

foreach ($quote->fileuploader as $file) { Db::table('auto_quotes')->where('quote_no', $quote->quote_no)->update(['path' => $file->fileuploader->getPath()]); }

But I get a result of getPath = null.

Anyone perhaps know how I should go about this?

1-1 of 1

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.