Loris
Loris copied to clipboard
[Manual Testing] Publication - File not uploading when submitting a proposal
Describe the bug
Getting the error "Something went wrong! Could not upload the file. Please try again!" when trying to upload a file along with a new publication.
The following was in the error log:
[Tue Mar 01 16:02:20.052437 2022] [php7:warn] [pid 24546] [client 192.168.122.1:55926] PHP Warning: move_uploaded_file(/data/publication_uploads/Screen_Shot_2022-02-15_at_3.08.31_PM.png): failed to open stream: Permission denied in /var/www/ccna/modules/publication/ajax/FileUpload.php on line 183, referer: https://ccna-dev.loris.ca/publication/ [Tue Mar 01 16:02:20.052761 2022] [php7:warn] [pid 24546] [client 192.168.122.1:55926] PHP Warning: move_uploaded_file(): Unable to move '/tmp/phpjmIFb2' to '/data/publication_uploads/Screen_Shot_2022-02-15_at_3.08.31_PM.png' in /var/www/ccna/modules/publication/ajax/FileUpload.php on line 183, referer: https://ccna-dev.loris.ca/publication/
To Reproduce Steps to reproduce the behavior (attach screenshots if applicable):
- Go to Publication module
- Click on 'propose a project'
- Fill in all the form and upload a file then submit
- See error
What did you expect to happen? The file to be uploaded successfully along with the publication.
Browser Environment (please complete the following information):
- OS: [e.g. Plan9, HURD, Oberon, etc]
- Browser [e.g. chrome, firefox] (note that only these two browsers are supported)
- Version [e.g. 22]
Server Environment (if known): Note: We only support the most recent release of LORIS.
- LORIS Version: [e.g. 22.0.0]
- Linux distribution and Version: [e.g. Ubuntu 16.04, CentOS 7]
- MySQL/MariaDB Version: [e.g. MySQL 5.7, MariaDB 10.3]
Additional context Add any other context about the problem here.
To add to this, there seems to be a duplicate "File to upload" field that may be related to this error
@shonibare Can you test if the bug is reproducible on demo.loris.ca?
It works @laemtl
The bug has been fixed