Editor File upload
Editor File upload
I am trying to use Editor file upload so far it is working but it isn't. the file uploads to the correct location as soon as i select it.
My first Question
1. Is there a way to delay this? to use it with presubmit
2. I am also getting the error
'A server error occurred while uploading the file'
the weird part is the file is still saved in the correct location
I have read all of the discussions i could find on here retaining to this function. I still cant seem to figure out the JSON return format.
I am Using Editor.net 1.7.2
Answers
No - the file upload is async to the rest of the form at the moment. This is to allow the file to be linked to from a parent table with a simple left join (i.e. the file's id can be submitted along with the rest of the form).
What is the server returning?
Allan
OK I fixed
by removing
return JSON(fileName)
but now I get
In datatables.js
The response body
and the modal shows the file name in the label below the upload control and the file is copied to its destination.
My controller
and the return in display
display: function (Hex_File) {
return Hex_File;
},
Hex_File returns the file name which is what i send back from the api.
Where is the
TypeMismatchError
happening please? If you are using the.min
version at the moment, it would be useful to use the non-minified version so I can understand where in the code the error is happening.Allan
I was not using the .min version for this reason I have been trying to troubleshoot for a couple of days.
In this section
I do not have a remove button
Oh and the line number for me is 95081
Are you able to give me a link to the page (you can PM me the link by clicking my name above and then the "Send message" button, if you don't want to make the link public).
Which line from that code block is breaking. It might be useful to know the values of the variables on that line as well.
Allan
This is an intranet website. I will not be able to make a public version until this weekend. I ran the site with debugging turned off in VS the TypeMisMatchError does not crash the site, and since the file copies I will push forward for now I will post an update when i have a live version for you to look at.
datatables.js
Line: 95081
--'opts' is undefined
BREAKS at the comment LINE 95081
Thats as much as i could get from IE Debug
Side note none of this happens in chrome, unfortunately I can not use this browser.
Thanks. Yes, I'm afraid I would need a link to the page in this case I think. If you do manage to publish it, it would be great if you could send the link over.
Is it IE11 you are using?
Allan