V
V
Vladimir Klintsov2018-09-01 17:16:52
OctoberCMS
Vladimir Klintsov, 2018-09-01 17:16:52

How to upload photos from the frontend?

title = "testupload"
url = "/testupload"
is_hidden = 0
child_of = "mey_no_parent"
hide_crumb = 0
remove_crumb_trail = 0
crumb_disabled = 0
[Ajax]
use_authors = 1
restrict_owner = 1
backUser = 1
allowpublish = 1
postPage = "blog/post"
[Responsiv\Uploader\Components\ImageUploader imageUploader]
placeholderText = "Click or drag images to upload"
maxSize = 5
fileTypes = ".gif,.jpg,.jpeg,.png"
imageWidth = 100
imageHeight = 100
imageMode = "crop"
= =
<?php
function onInit()
{
$this->fileUploader->bindModel('photos', ????????? );
}
?>
==
{% component 'Ajax' %}
{% component 'imageUploader' %}
I can't figure out what should be instead of questions? Are there any examples?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question