Editor upload file display option throws error
Editor upload file display option throws error
dee@convert2media.com
Posts: 1Questions: 1Answers: 0
when I upload file uploads fine but I then get exception "Unknown file table name: files". Here is js configuration:
display: function ( file_id ) {
return '<img src="'+oTable.file( 'files', file_id ).web_path+'"/>';
},
oTable is my DataTable object.
Here is JSON response of upload:
{"success":"true","message":"Records: 1","data":[{"id":"4541","friendly_name":"test 23","payout":"1","creatives":"1"}],"files":{"files":{"1339":{"id":"1339","filename":"Screen Shot 2016-10-17 at 2.14.44 PM.png","filesize":99636,"system_path":"\/var\/www\/html\/uploads\/Screen Shot 2016-10-17 at 2.14.44 PM.png","web_path":"https:\/\/d19wao8xekn0f6.cloudfront.net\/imageglobs\/mob-1339-1483651224.png"}}},"upload":{"id":"1339"}}
Why am I getting this error?
This discussion has been closed.
Answers
That does look like it should work. Could you give me a link to the page showing the issue so I can check it out please?
Allan