Find the hotspot - upload Background image error

Drupal  - "Find the hotspot"

I cannot upload "Background image"

I receive this error :
"File Upload Error: The file you are trying to upload might be too large."

My file has 35 kb.

For content type " Image Hotspots" all are OK.

Thanks

falcon's picture

Everything is ok in Image Hotspots, even when using the exact same image? Could you check your Drupal error log? /admin/reports/dblog

In Image Hotspots everything is ok .

Error occurs only in  "Find the hotspot"

 

falcon's picture

Could you try to do the same here on H5P.org? I tried it and it works fine for me. This is a Drupal 7 site.

  Sorry. I have this error Strict warning: Only variables should be passed by reference în opigno_quiz_app_og_context_handler() (line 205 from /home/oficial/public_html/elearn/profiles/opigno_lms/modules/opigno/opigno_quiz_app/opigno_quiz_app.module).

 

falcon's picture

It is also possible to turn of strict error messages in PHP. First hit on Google.

   I made a test site Opigno LMS 7.x-1.21 , but I get the same error. "File Upload Error: The file you are trying to upload might be too large." I can download image for other content type. I can send my administrator password Thanks 
falcon's picture

Yes, please send a password and the image you're trying to upload and we will give it a shot!

i am trying to figure it out,too. I get the same error and i cannot find a solution. Any progress?

I sent through the contact form

falcon's picture

Thanks, I had a quick look now, and for some reason your server refuses access when using find the hotspot, but not when using for instance fill in the blanks. I've asked a developer for help her to see what is actually going on. It seems that different hearders are used for the two requests, but I don't know why.
icc's picture

I had a look as well, and I can't see any reason as to why it would fail only for Find the Hotspot. Is it possible you could have a look in you server's log files or error log to try and find any relevant error messages? You might have to set the logging level to debug to be able to get the needed message/reason.
It seems like it is the server returning the 403 and not PHP/Drupal. It would be nice to know why. Maybe the error can be avoided somehow.

I have posted to support forum at opigno.org.
https://www.opigno.org/en/forum/support/file-upload-error-file-you-are-t...
https://h5p.org/comment/4020#comment-4020

in my case there seems to be no error how ever I cannot upload images...