adminarchitect / core

AdminArchitect - Active Admin for Laravel
http://adminarchitect.com
MIT License
211 stars 66 forks source link

How can I upload a image to my custom directory? #34

Closed filip-mustatea closed 6 years ago

filip-mustatea commented 6 years ago

Hello,

I set a field from a form to be for image uploads like this :

` public function form() { return $this ->scaffoldForm()

        # Update existing column
        ->update('image', function ($element) {

            # Set a different input type
            $element->setInput(
                new Image('image')
            );

            return $element;
        });
}`

But my images are saved in a temporary folder with extension .tmp. How can I set my folder?

Thank you!

endihunter commented 6 years ago

@filip-mustatea adminarchitect uses paperclip for images/files management. Please read its documentation for customisation.

endihunter commented 6 years ago

@filip-mustatea also, please follow these documentation steps.