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
8cba97bb
Commit
8cba97bb
authored
Sep 16, 2020
by
azcomi
Committed by
jungle
Sep 16, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue
#3015274
by azcomi, jungle: Issue with filenames beginning with a non-US-ASCII character
parent
9861c56c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
src/Controller/UploadController.php
src/Controller/UploadController.php
+3
-1
No files found.
src/Controller/UploadController.php
View file @
8cba97bb
...
...
@@ -65,10 +65,12 @@ class UploadController extends ControllerBase {
// @todo: Implement file_validate_size();
try
{
/* @var \Drupal\Core\File\FileSystem $file_system */
$file_system
=
\
Drupal
::
service
(
'file_system'
);
// Return JSON-RPC response.
return
new
AjaxResponse
([
'jsonrpc'
=>
'2.0'
,
'result'
=>
basename
(
$this
->
uploadHandler
->
handleUpload
(
$file
)),
'result'
=>
$file_system
->
basename
(
$this
->
uploadHandler
->
handleUpload
(
$file
)),
'id'
=>
'id'
,
]);
}
...
...
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