Answer the question
In order to leave comments, you need to log in
Ajax file upload. The server returns errors. Who will prompt in what there can be an error?
The task to be solved is loading an image via ajax.
Yii2. I'm using the \troy\ImageUpload\ extension, which uses the ajaxuploader plugin.
View code:
<?= Html::button('Upload', ['id' => 'UploadButton', 'class' => 'button button-submit']) ?>
<?= \troy\ImageUpload\ImageUpload::widget(
[
'targetId' => 'UploadButton',
'config' =>[
'action' =>Yii::$app->getUrlManager()->createUrl(['user/upload'])
]
]
); ?>
Answer the question
In order to leave comments, you need to log in
You are looking at access.log. Look in error.log - the details of error 500 are written there ... well, they should be written.
And the sizzle.min.map file is simply not found. The framework tries to load it instead of css.
remove the following line in the sizzle.min.js file //# sourceMappingURL=sizzle.min.map
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question