I'm currently working on a quick interface for uploading a file (wordpress export in JSON) and having some trouble getting it to work in the backoffice.
I've tried two methods:
Using Jon D. Jones method of bypassing Angular and just using an MVC controller, but it looks like my
Creating a backoffice plugin using Angular from the official Umbraco documentation. I got this to display and mostly interact correctly, but I'm having trouble with the upload part. All the stuff I see from googling is using Upload.upload(), however when I reference this, it throws an error.
I'm hoping someone can send me in the right direction...
From what I have seen on you are trying to reach out a controller action.
In order to do that you should use http.get/post or any other depending your action instead of Upload.upload (Honestly I don't know about Upload.Upload at all)
Uploading a file via Umbraco backoffice
I'm currently working on a quick interface for uploading a file (wordpress export in JSON) and having some trouble getting it to work in the backoffice.
I've tried two methods:
Using Jon D. Jones method of bypassing Angular and just using an MVC controller, but it looks like my
Creating a backoffice plugin using Angular from the official Umbraco documentation. I got this to display and mostly interact correctly, but I'm having trouble with the upload part. All the stuff I see from googling is using Upload.upload(), however when I reference this, it throws an error.
I'm hoping someone can send me in the right direction...
The upload function in my angular controller:
HTML View
Heya Travis,
From what I have seen on you are trying to reach out a controller action.
In order to do that you should use http.get/post or any other depending your action instead of Upload.upload (Honestly I don't know about Upload.Upload at all)
You can find some more information here in the documentation.
Regards,
Mehmet
is working on a reply...