stable

Clone or download

Read-only

Check filename

The behavior should be the same as in the web interface: some characters in filename being uploaded are not valid. Try to POST /frs_files with the following body: { "release_id": 1, "name": "../titi.png", "file_size": 0 } You should get a 400. Part of story #12813: upload files with FRS REST API Change-Id: I6bfc443b06e7e133c4d99f28bfa6ac827572271b

Modified Files

Name
M plugins/frs/include/FRS/REST/v1/FileCreator.php +6 −0 Go to diff View file
M plugins/frs/include/FRS/Upload/FileToUploadCreator.php +6 −0 Go to diff View file
A plugins/frs/include/FRS/Upload/UploadIllegalNameException.php +27 −0 Go to diff View file