Doveps / mono

Code for Doveps projects
http://doveps.com
MIT License
0 stars 0 forks source link

POST scanner files for flavor creation #32

Closed greenmoss closed 7 years ago

greenmoss commented 7 years ago

Goal: when creating a flavor, all files should be supplied via POST

This should replace savant/app/results.py#L14, which reads files directly from the file system.

JosiahRegencia commented 7 years ago

Does this mean that this should not read all the files directly in one command?

greenmoss commented 7 years ago

If it's possible to do it in one command, then do that. I haven't tried it before though. Check here for ideas:

http://pythonhosted.org/Flask-Uploads/

JosiahRegencia commented 7 years ago

Just an update: I could manage uploading one file. I'm still figuring out how to upload multiple files in one command. for travis, I still don't know how to run a curl command in travis

JosiahRegencia commented 7 years ago

trouble with uploading is with, curl. As of the moment

zerstoeren commented 7 years ago

how are you doing it now?

you might try something like this:

after_deploy:

On Fri, Aug 25, 2017 at 10:05 PM, Josiah Eleazar T. Regencia < notifications@github.com> wrote:

trouble with uploading is with, curl. As of the moment

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/Doveps/mono/issues/32#issuecomment-325073393, or mute the thread https://github.com/notifications/unsubscribe-auth/AGbogtVkwZle-y8AzjzMxL-m-yT_QoAaks5sb32AgaJpZM4O9itL .

JosiahRegencia commented 7 years ago

I put it under the script. Although if I'm using my Ubuntu terminal, I could only upload 1 file at a time. Uploading multiple files at a time gives me this: curl: (6) Could not resolve host: -F

zerstoeren commented 7 years ago

ah... try putting it in a bash script that you can loop until all of the files are pushed.

On Fri, Aug 25, 2017 at 10:39 PM, Josiah Eleazar T. Regencia < notifications@github.com> wrote:

I put it under the script. Although if I'm using my Ubuntu terminal, I could only upload 1 file at a time. Uploading multiple files at a time gives me this: curl: (6) Could not resolve host: -F

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/Doveps/mono/issues/32#issuecomment-325076056, or mute the thread https://github.com/notifications/unsubscribe-auth/AGbogsVKHnk_s9_Fq05Qv_GYJFqFTmk-ks5sb4VMgaJpZM4O9itL .

JosiahRegencia commented 7 years ago

What do you mean?

greenmoss commented 7 years ago

Regarding uploading multiple files: One file is fine to start with; we will add a follow-on task for uploading multiple files