uncaught exception: Unknown file id
uncaught exception: Unknown file id
sarath_surisetty
Posts: 54Questions: 13Answers: 0
in Editor
Hi Allan
further fixing edit :upload many with ref: https://datatables.net/forums/discussion/50933/datatable-with-uploadmany-uncaught-exception-unknown-file-table-name
After fixing the issue of edit for upload many in edit i am facing issue for "Add"
js code:
{
label: "Images:",
name: "propertyImages[].imageId",
type: "uploadMany",
ajax: 'propertyImage/add',
display: function ( imageId, counter ) {
return '<img src="'+propertyEditor.file( 'propertyImages', imageId ).imagePath+'"/>';
},
noFileText: 'No images'
},
js response:
{"upload":{"id":2},"files":{"files":{"2":{"filename":"30e9b4f2-caa1-4f98-a495-bfd4e9741023.png","web_path"
:"Temp\30e9b4f2-caa1-4f98-a495-bfd4e9741023.png"}}}}
could you please support in fixing this issue?
screenshot:
This question has accepted answers - jump to:
This discussion has been closed.
Answers
This part:
Is incorrect - it should be:
For your use case, since you are looking up data from a table called
propertyImages
.Allan
hi allan
your guess was correct also i corrected web_path key.
-> is it possible to pass base64 string and form image with this approach instead of passing the image path?
thanks
sarath
Hi Sarath,
Yes, you could include a base64 string and use the following to display it:
Allan