Nice work and thank you for sharing! :) - I'm just wondering if it would be possible make a package out of this so people can just install it boom then it works?
Cool - It seems to be some nice useful functionality that many can benefit from without needing to know the ins and outs of the code and how to make it work themselves. By packaging it up and writing some short instructions it can perhaps make it easier for those that just need to get the job done and might not need to know all the details about what goes on under the helmet :)
I can see definitely see that. It's just a matter of time (I had just completed the code for a work project so threw it up quickly). I'll have to fit in packaging it as a little weekend warrior project.
Great work, also trying to get this running seems like it's using an old v3 version of https://github.com/danialfarid/ng-file-upload so make sure to reference that, since the new ones won't work due to the directives being renamed
When added to the document type, Its loading the the browse and upload button, no console errors but when i click on browse its saving the document (i.e. firing save event instead of opening file dialog).
Is there a proper way to get this to work in a data type?
You'll need to clone the repo and then copy the App_Plugins/SimpleFileUpload folder, and the FileUploadApiController.cs into your Umbraco project. You will then be able to create a dashboard control pointed at ../App_Plugins/SimpleFileUpload/app.html, e.g.
Uploading files to server w/AngularJS API service and Umbraco API controller
I made a Gist for this, as it's something I've had to do for a couple projects. Thought it might come in handy for someone else.
File Upload Example Gist
If there's any thoughts on how to improve it, or make it simpler, or do the same thing better in another fashion, I'd be interested.
Hi Kyle
Nice work and thank you for sharing! :) - I'm just wondering if it would be possible make a package out of this so people can just install it boom then it works?
/Jan
Jan,
Oh, hey, probably! I hadn't considered a small package for something like this, but that's a great thought. I'll look into that. :)
-Kyle
Cool - It seems to be some nice useful functionality that many can benefit from without needing to know the ins and outs of the code and how to make it work themselves. By packaging it up and writing some short instructions it can perhaps make it easier for those that just need to get the job done and might not need to know all the details about what goes on under the helmet :)
/Jan
I can see definitely see that. It's just a matter of time (I had just completed the code for a work project so threw it up quickly). I'll have to fit in packaging it as a little weekend warrior project.
Yeah, no worries - I can totally understand it and it's up for the grabs from Github - So just a nice enhancement when time allows.
I'll certainly give the package a big H5YR :D
/Jan
The package is absolutely a great idea. :) I'm glad you suggested it!
The gist looks great. H5YR!!!
How do I get this working on a custom section panal as a plugin?
I've created a plugin folder, then added a custom dashboard section:
Then on the controller I have this:
and in my package manifest files I have this:
Nothing seems to be firing when I click the choose file button though.
Hi Matt
Did you find a solution to this?
I cant seem to get it to work either. Interested to know if you find a workaround.
Comment author was deleted
Great work, also trying to get this running seems like it's using an old v3 version of https://github.com/danialfarid/ng-file-upload so make sure to reference that, since the new ones won't work due to the directives being renamed
Hi Tim
Are you using the file at
https://github.com/danialfarid/ng-file-upload/blob/master/demo/src/main/webapp/js/ng-file-upload.js
I have tried copying that file to the App_plugins folder of the angular-uploader but it doesnt seem to work.
Do you happen to have the direct link to the ng-file-upload.js used?
Tried adding it as a data type with package.manifest looking like below;
When added to the document type, Its loading the the browse and upload button, no console errors but when i click on browse its saving the document (i.e. firing save event instead of opening file dialog).
Is there a proper way to get this to work in a data type?
For others interested in this topic, based on Kyle's initial Gist I have a working plugin at
https://github.com/BarryFogarty/Umbraco.SimpleFileUpload
You'll need to clone the repo and then copy the App_Plugins/SimpleFileUpload folder, and the FileUploadApiController.cs into your Umbraco project. You will then be able to create a dashboard control pointed at ../App_Plugins/SimpleFileUpload/app.html, e.g.
I plan to develop it into a package, which will install a property editor into the backoffice for use in doctypes.
is working on a reply...