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

Heartless49
Heartless49

Was wondering how difficult it would be for a front-end image uploader plugin. I haven't even glanced at the API for October, so I'm clueless as far as that goes. It would help because my current use for this involves keeping the backend/admin section for template design/layout management, while the actual content will be managed by specific users (through the Users plugin) using the editable plugin.

Basically, trying to keep non-coders from accessing the backend and risking messing anything up. So that being the case, my only need is for a front-end image upload form that can throw the images into a directory based on the page it is uploaded to.

For example, if you are on mysite.com/thispage then it would upload the images into the uploads directory of the theme, in a new directory called thispage. Whereas if you are at mysite.com/thispage/thisid it will still goto the directory thispage. However from mysite.com/anotherpage or mysite.com/anotherpage/anotherid, would put the images in a directory called anotherpage instead of thispage...

If that makes any sense, lol.

Daniel81
Daniel81

You could probably use Octobers built in TWIG form extensions to build an upload form on a front end page? Since October is built on Laravel, you can also refer to the Laravel docs to see how you could do this, or just a quick Google for "Laravel File Upload" will get you some tutorials on how to do this also.

Hope that helps :)

1-2 of 2

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