This topic is locked

Error uploading images

9/12/2011 4:10:07 PM
PHPRunner General questions
B
biztools author

Hi,
I've created a set of admin pages using PHP runner to allow a customer to upload a product name, description, and a photo. the text data goes in just fine, but when uploading a photo I get the following error:
Error type 2

Error description fwrite() expects parameter 1 to be resource, boolean given

URL headoverheelsjewelry.com/dbadmin/data_edit.php?

Error file /usr/home/bill1031/public_html/dbadmin/include/phpfunctions.php

Error line 425

SQL query update data set data_category='Bracelets', data_name='Test 2', data_description='Massa magna eu, augue nisi cursus placerat! Mauris augue, elementum adipiscing, habitasse ut rhoncus et vel dapibus. Turpis urna? Enim nec phasellus mid, turpis sit non est velit duis porta eu? Ut tortor, nisi scelerisque in porta dapibus risus! Arcu non! Magnis aliquet in, dis? Dignissim pulvinar! Lorem et, lorem, ridiculus lundium porttitor, sed tincidunt, eu scelerisque nunc magna. Elementum dignissim hac integer nascetur nec sit odio mus sit adipiscing aenean, integer sed adipiscing, ridiculus nunc ut cum. Magna, sed magnis magna et aenean elementum sociis. Adipiscing in, rhoncus! Integer et sit? Aenean egestas elementum. Tempor magnis velit integer augue nec tristique sed, eu turpis scelerisque porttitor ac amet proin, cum, elementum penatibus! Augue est scelerisque scelerisque amet risus.', data_price='1.00', data_active='Y', data_photo='test-image.jpg' where data_recid=4
I'm not even sure where to start. I've created a similar set of tools on another clients site, and it works like a charm. As far as I know, I did the setup the same.
Any suggestions would be appreciated!
Jon

Sergey Kornilov admin 9/12/2011

The first thing to check is that upload folder is specified properly and web server user has write permissions on this folder.
If this doesn't help post your application to Demo Account and open a ticket at http://support.xlinesoft.com sending your Demo Account URL. 'Demo Account' button can be found on the last screen in the program.