# Bug with uploading image

**URL:** <https://community.xibo.org.uk/t/bug-with-uploading-image/4633>\
**Category:** Help Topics\
**Created:** [January 7, 2016, 11:04am UTC](https://community.xibo.org.uk/t/bug-with-uploading-image/4633 "2016-01-07T11:04:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jimmy](https://community.xibo.org.uk/letter_avatar_proxy/v4/letter/j/ee59a6/32.png) [@Jimmy](https://community.xibo.org.uk/u/Jimmy)\
**Post date:** [January 7, 2016, 11:04am UTC](https://community.xibo.org.uk/t/bug-with-uploading-image/4633/1 "2016-01-07T11:04:25Z")

</div>

I cannot create an issue at Github, so I post it here.

Xibo version: 1.7.5  
MySQL: 5.7.10  
PHP: 5.5.30  
Apache: 2.4.9

Layouts --\> Add layout  
Edit design of layout --\> go to button Options and press Background.  
In the popup window press background image press “Add image”. Add a file and press upload in the same row as the new file that has been added.

After upload press “set background”.  
I get this error on a blank page:  
{“files”:[{“name”:“1452161179-4352”,“size”:0,“type”:"",“error”:“No file was uploaded”}]}

You will get this error in the log:  
Request URL: /xibo/index.php?p=content&q=JqueryFileUpload&type=image  
Error: (also shown on blank webpage)  
unlink(LOCATION\xibo-data/temp/Roze-achtergronden-roze-wallpapers-roze-achtergrond-hd-5.jpg): No such file or directory  
2  
Warning  
D:\appl\wamp\www\xibo\3rdparty\jquery-file-upload\XiboUploadHandler.php  
38

Instead of temp\Roze-achtergronden-roze-wallpapers-roze-achtergrond-hd-5.jpg I find this:  
LOCATION\xibo-data\temp\1

The file 1 (no extension) is the actual jpg.  
I retried this acount a couple of times. Most times the file in the temp folder is named correctly, but not always. The errors are showing up each time.

PHP and Apache log do not contain any error.

Note: if I refresh the webpage I get a blank page with the text:  
{“files”:[{“name”:“1”,“size”:83906,“url”:“[https://localhost:443/xibo/index.php?p=content&q=JqueryFileUpload&file=1&download=1",“delete\_url”:“https://localhost:443/xibo/index.php?p=content&q=JqueryFileUpload&file=1”,“delete\_type”:"DELETE](https://localhost:443/xibo/index.php?p=content&q=JqueryFileUpload&file=1&download=1%22,%22delete_url%22:%22https://localhost:443/xibo/index.php?p=content&q=JqueryFileUpload&file=1%22,%22delete_type%22:%22DELETE)”}]}

However, the file is actually uploaded and available to select.

I found the following problem in the debug log, I get it each time. Maybe it is related:  
Warning: 1265 Data truncated for column ‘type’ at row 1

---

<div class="post-metadata">

**Author:** ![Peter](https://community.xibo.org.uk/user_avatar/community.xibo.org.uk/peter/32/8154_2.png) [@Peter](https://community.xibo.org.uk/u/Peter)\
**Post date:** [January 7, 2016, 11:08am UTC](https://community.xibo.org.uk/t/bug-with-uploading-image/4633/2 "2016-01-07T11:08:24Z")

</div>

Hi Jimmy,

Thank you for your detailed report.

The bug report for it already exists in gitHub, now I’ve also added this topic there.  
Hopefully thanks to all of this we will be able to fix it in the next release.

> <https://github.com/xibosignage/xibo/issues/627>

---

<div class="post-metadata">

**Author:** ![system](https://community.xibo.org.uk/uploads/default/original/2X/a/a8759c2d8cc561474733895ac75beeb830f5d8ca.png) [@system](https://community.xibo.org.uk/u/system)\
**Post date:** [March 4, 2020, 5:04pm UTC](https://community.xibo.org.uk/t/bug-with-uploading-image/4633/3 "2020-03-04T17:04:34Z")

</div>

Closed on March 4, 2020, 5:04pm UTC


