1

I'm trying to upload image to variable using drop area and I found out ng2-file-upload but it only uploads to url. Is there any way I can trick it, or maybe some other tools I can use for this? Generally i want to upload image droping it to an area on my page and store it in models field, then save it via rest to database. I use angular 4.

As and example i found this https://github.com/valor-software/ng2-file-upload and demo: http://valor-software.com/ng2-file-upload/ But I found only examples of immediately saving it with rest, instead I want to store it in my variable.

5
  • please try to post your code for understand your question clearly to others. Commented Aug 3, 2017 at 17:32
  • By looking at the source Fileuploader has an attribute named queue, which stores the files. Post some code related to your problem to narrow down the solution. Commented Aug 3, 2017 at 19:07
  • Or manually upload file, as described in stackoverflow.com/a/45492440/2235158 Commented Aug 3, 2017 at 19:07
  • i think queue storing path to files or something like this, adding some details to question post Commented Aug 3, 2017 at 20:25
  • Found an answer in this post stackoverflow.com/questions/45182190/… Commented Aug 4, 2017 at 8:28

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.