Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
D
dropzonejs
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Custom Issue Tracker
Custom Issue Tracker
Labels
Merge Requests
1
Merge Requests
1
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
project
dropzonejs
Commits
7e628cf7
Commit
7e628cf7
authored
Jan 15, 2020
by
mtodor
Committed by
Primsi
Jan 15, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue
#3101967
by mtodor: Missing directory upload error
parent
9670437f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
modules/eb_widget/src/Plugin/EntityBrowser/Widget/DropzoneJsEbWidget.php
...et/src/Plugin/EntityBrowser/Widget/DropzoneJsEbWidget.php
+1
-1
No files found.
modules/eb_widget/src/Plugin/EntityBrowser/Widget/DropzoneJsEbWidget.php
View file @
7e628cf7
...
...
@@ -262,7 +262,7 @@ class DropzoneJsEbWidget extends WidgetBase {
// it's still better not to rely only on client side validation.
if
((
$trigger
[
'#type'
]
==
'submit'
&&
$trigger
[
'#name'
]
==
'op'
)
||
$trigger
[
'#name'
]
===
'auto_select_handler'
)
{
$upload_location
=
$this
->
getUploadLocation
();
if
(
!
$this
->
fileSystem
->
prepareDirectory
(
$upload_location
,
FileSystemInterface
::
MODIFY_PERMISSIONS
))
{
if
(
!
$this
->
fileSystem
->
prepareDirectory
(
$upload_location
,
FileSystemInterface
::
CREATE_DIRECTORY
|
FileSystemInterface
::
MODIFY_PERMISSIONS
))
{
$form_state
->
setError
(
$form
[
'widget'
][
'upload'
],
$this
->
t
(
'Files could not be uploaded because the destination directory %destination is not configured correctly.'
,
[
'%destination'
=>
$this
->
getConfiguration
()[
'settings'
][
'upload_location'
]]));
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment