xylucien / MusicalKits_Converter

My personal Flask project
1 stars 0 forks source link

Adding upload/download function? #9

Closed xylucien closed 4 years ago

xylucien commented 4 years ago

Now I think is the time to allow users to upload their musicxml and download the result. I think I need a folder to store all uploaded data and another one to store downloadable content. The "update" button can be a download button and I would keep the action textbox to serve as a log.

xicheng87 commented 4 years ago

Let's think about this while polishing the current impl.

xylucien commented 4 years ago

Now my code is able to allow users to upload their musicxml file

xylucien commented 4 years ago

Files will be stored at /musicxmlCache folder.

xylucien commented 4 years ago

Now I plan to restructure the front-end logic a little bit. Now users can either copy-paste or file upload their input. I should keep the delete button, and change the "update" button to "convert" and redirect them to the page where the result in printed on screen.

xylucien commented 4 years ago

And the index page simply print out a table of previous input as well as a list of the uploaded file names

xicheng87 commented 4 years ago

Sounds good. Why would you keep the delete button and what is that for?

xylucien commented 4 years ago

em.. for debugging? Its kinda annoying when I have to scroll down the page every time I open it

xicheng87 commented 4 years ago

I just visited http://test-flask.eba-sgnxtm3j.us-east-1.elasticbeanstalk.com/ , you really need to clean up the page by not showing the submission histories (it seems that it does now). Just have a simple box for input and let user to click submit, then show the output, Right now there are lot of text boxes stacked on top of each other which needs to be cleaned up.