Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need a generic file upload servlet, mbean and directive to manage uploads #374

Closed
gashcrumb opened this issue Jun 21, 2013 · 3 comments
Closed

Comments

@gashcrumb
Copy link
Member

A few features (patching, profile import) will need file uploads, so would be good to have a re-usable method to get files up to the server.

@gashcrumb
Copy link
Member Author

Now that there's a directive in place it's pretty easy to upload files:

Shows a file listing:

<div hawtio-file-upload="files" target="test"></div>

to turn that off:

<div hawtio-file-upload="files" target="test" show-files="false"></div>

"target" is the subdirectory to upload files to and watch for files. "files" is an array of file objects that will be updated as the directive polls the server. So if you want to execute some action once a file is uploaded you can just watch your scope's "files" object, you'll get called on by angular when the array is updated. So we can support staging files to an interim directory (patching), or directly uploading files and acting on them (profile import)

@jstrachan
Copy link
Contributor

Awesome! One of these days we should maybe figure out how to make some of these awesome directives as stand alone JS libraries ;)

@gashcrumb
Copy link
Member Author

Yeah! Actually should be fairly easy, they just need to be broken out into
modules... Be a bit of work to gather up the CSS for each one and separate
that out.

Which reminds me, I've gotta get those .less files compiled by default...

On Wed, Jun 26, 2013 at 10:38 AM, James Strachan
notifications@github.comwrote:

Awesome! One of these days we should maybe figure out how to make some of
these awesome directives as stand alone JS libraries ;)


Reply to this email directly or view it on GitHubhttps://github.com//issues/374#issuecomment-20051753
.

jamesnetherton pushed a commit to jamesnetherton/hawtio that referenced this issue Nov 15, 2018
fix(springboot): ENTESB-9487 - Hawtio HTTP security enhancements aren…
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants