Loris icon indicating copy to clipboard operation
Loris copied to clipboard

[Manual Testing] Publication - File not uploading when submitting a proposal

Open shonibare opened this issue 3 years ago • 1 comments

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. image

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):

  1. Go to Publication module
  2. Click on 'propose a project'
  3. Fill in all the form and upload a file then submit
  4. 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.

shonibare avatar Feb 25 '22 20:02 shonibare

To add to this, there seems to be a duplicate "File to upload" field that may be related to this error image

CamilleBeau avatar Mar 01 '22 15:03 CamilleBeau

@shonibare Can you test if the bug is reproducible on demo.loris.ca?

laemtl avatar Jan 24 '23 15:01 laemtl

It works @laemtl Screenshot 2023-01-24 at 2 19 36 PM

shonibare avatar Jan 24 '23 19:01 shonibare

The bug has been fixed

shonibare avatar Nov 07 '23 20:11 shonibare