This topic is locked
[SOLVED]

 Signature Pad Files

8/19/2017 3:48:20 AM
PHPRunner General questions
S
swanside author

Hi All

Created my signature pad and it works. Users can sign and draw whatever they like and it saves it into the database field as below, but when I view it, I see no image. The properties of the image are below
Database Field Data

[{"name":"files\/hl4h5smbo07u8v7.png","usrName":"signature.png","size":false,"type":"image\/png","searchStr":"signature.png:sStrEnd"}]


Website Signature Field

https://asprunner.com/forums/file.php?topicimage=1&fieldname=question&id=24946&image=1&table=forumtopics


Signature Pad Proerties

// signature field height

$this->settings["height"] = 100;

// signature field width

$this->settings["width"] = 300;

// signature background color

$this->settings["bgcolor"] = array(0xff, 0xff, 0xff);

// set it to true to make signature field required

$this->settings["required"]=false;

// folder to store signature files

$this->settings["folder"]="files";


I have folders in my www/files

and also in www/shark/files
I will change the

// folder to store signature files

$this->settings["folder"]="files";


To

// folder to store signature files

$this->settings["folder"]="images";

and see if this works in the meantime.
Cheers

Paul

romaldus 8/19/2017

in phprunner make sure you set up field "view as" image

S
swanside author 8/19/2017



in phprunner make sure you set up field "view as" image


It is set at that already pal <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=82961&image=1&table=forumreplies' class='bbc_emoticon' alt=';)' /> Just shows a no_image.gif

Admin 8/19/2017

Make sure that image files are actually created in 'files' folder. If not - make sure write permissions are set on this folder.

S
swanside author 8/19/2017



Make sure that image files are actually created in 'files' folder. If not - make sure write permissions are set on this folder.


doh!!! Forgot to check that. Will give it a go thanks

S
swanside author 8/19/2017



doh!!! Forgot to check that. Will give it a go thanks


In WIndows, WHat user would require write access to the folder? In FTP it wont allow me to set 755 for the folders, so I will have to do it via the windows folder security settings?

Cheers

Admin 8/19/2017

You need to ask your web hosting company how to do that. Normally you set permissions on files and folder via web hosting control panel.

S
swanside author 8/19/2017



You need to ask your web hosting company how to do that. Normally you set permissions on files and folder via web hosting control panel.


Thanks, but its on a local PC sat on my desk <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=82968&image=1&table=forumreplies' class='bbc_emoticon' alt=':)' /> using IIS7

Admin 8/19/2017

Before changing any permissions you need to figure out if files are actually written to that folder.
And to figure out what user IIS runs under Google "what user iis 7 running as"

S
swanside author 8/19/2017



Before changing any permissions you need to figure out if files are actually written to that folder.
And to figure out what user IIS runs under Google "what user iis 7 running as"


I cheated...
I built my project. Opened the files and made a folder in the output DIR called files.

Uploaded all to the server. This uploaded the folder I have made and now it saves the signature files to this folder within my project <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=82971&image=1&table=forumreplies' class='bbc_emoticon' alt=':)' />

N
neptue 10/16/2017



Make sure that image files are actually created in 'files' folder. If not - make sure write permissions are set on this folder.


Me too have the same problem. Image is actually saved in the files folder. But its not showing in the view page