Unable to upload pictures
Submitted by skshed on Thu, 02/15/2018 - 09:24
Forums:
I seem to have an unusual issue in live where we cannot upload pictures and just see the throbber. In dev which is hosted locally on Drupal everything works fine, out live site is in AWS and also running Drupal. I can't see anything in the logs and in dev toolbar it just starts to upload the file but never finishes it. I've tried changing from private to public files etc but still no joy. Any ideas anyone?
Any help would be much appreciated.
Content types:
BV52
Thu, 02/15/2018 - 14:45
Permalink
Hi skshed,In order to give
Hi skshed,
In order to give your bug report the best chance of getting answered, please include the following information:
The more information you provide, the quicker the community will be able to fix it and the quicker you'll have a working solution!
-BV52
skshed
Thu, 02/15/2018 - 15:33
Permalink
Thanks BV52,The problems
Thanks BV52,
The problems occurs with Drupal 7.56 on desktop (Will test mobile shortly)
I have tried Firefox, Edge and Chrome and see the same results.
Version of the H5P module is 7.x-1.34.
The content types tried include the following: Drag n drop, image sequencing and course presentation and the latest version for each one.
Not seeing any errors in the console, it just keeps spinning and not uploading the file. Weirdly I have just seen an error for course presentation but not the following, the error is as follows:
Warning: file_get_contents(sites/default/files/h5p/libraries/jQuery.ui-1.10/h5p-jquery-ui.js): failed to open stream: No such file or directory in H5PDefaultStorage->getContent() (line 288 of /var/app/current/sites/all/modules/h5p/library/h5p-default-storage.class.php)
Attached a screenshot
skshed
Thu, 02/15/2018 - 16:27
Permalink
After a bit more testing, the
After a bit more testing, the images are appearing in AWS, but I guess it's not talking back to the browser to say it's there.
skshed
Thu, 02/15/2018 - 17:52
Permalink
It's something to do with the
It's something to do with the AWS config. If I use a load balancer it works, if I don't and use the .ebextensions it doesn't. Will see what I can find out and post back if I find a fix in case anyone else has the same issue.
BV52
Fri, 02/16/2018 - 04:24
Permalink
Hi skshed,Thank you for the
Hi skshed,
Thank you for the update. Good luck and we look forward to the results.
-BV52
skshed
Tue, 05/15/2018 - 12:14
Permalink
Apologies for the delay. I
Apologies for the delay. I had to remove this from my AWS config:
Header always set X-Frame-Options DENY
Hopefully this will help people if they have the same issue.
BV52
Wed, 05/16/2018 - 04:15
Permalink
Hi skshed,No worries and
Hi skshed,
No worries and thanks for getting back to us with your findings this will definitely help those that have a similar situation.
-BV52