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

contactredch58134
contactredch58134

Hello. In Builder plugin FileUploader field is uploads to storage/app/uploads. However I need upload it directly to Media October Cms. Is there way to do it? Thanks.

Last updated

mjauvin
mjauvin

No. Use Media Finder for this.

contactredch58134
contactredch58134

mjauvin said:

No. Use Media Finder for this.

Thanks. And as I understand there is no relations with Media Finder?

mjauvin
mjauvin

What do you mean "no relations" ?

contactredch58134
contactredch58134

mjauvin said:

What do you mean "no relations" ?

with FileUpload, I used public $attachOne = [ 'img' => 'System\Models\File' ];

and in routes.php I could displayed it. I meaned with Media Finder I can't do this. Sorry for bad explanation. Thanks for helping

Last updated

mjauvin
mjauvin

You're correct.

What EXACTLY are you trying to achieve here?

Last updated

contactredch58134
contactredch58134

mjauvin said:

You're correct.

What EXACTLY are you trying to achive here?

mjauvin said:

You're correct.

What EXACTLY are you trying to achive here?

I want to upload image from backend which I created with builder plugin. And beeing able to display images from routes.php. I can do this with FileUpload. However I wanna do this with Media Manager. Because I wanna save images in cloud, I connected Media Manager with online cloud disk. The problem is this. I have to upload image from backend to Media Manager and beeing able to display it in routes.php

Last updated

mjauvin
mjauvin

Can you show your routes.php ?

contactredch58134
contactredch58134

mjauvin said:

Can you show your routes.php ?

<?php

use Asd\Asd\Models\Asd; use Illuminate\Http\Request;

Route::match(['GET'],'api/asd', function() { $asd = Asd::all();

return $asd; });

mjauvin
mjauvin

And where's the reference to uploaded files in there?

Why don't you add a field of type=mediafinder to your model again?

mjauvin
mjauvin

Why don't you join a Discord channel for this, would be easier:

https://discord.gg/gEKgwSZ

contactredch58134
contactredch58134

mjauvin said:

Why don't you join a Discord channel for this, would be easier:

https://discord.gg/gEKgwSZ

Thank you very much! I will use it. :)

1-12 of 12

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