flask doc screenshot

Figured out my problem with uploading an image file to my Flask server this morning. Turns out you have to grab the actual input field and not the Ember model binding for that input field.

The interesting thing about the Ember binding of the file input field is that it grabbed the binary data of the image. So that confused me for a while. Once I used some straight jQuery to grab the input element I was able to get the appropriate fields for name, type, etc and the upload worked as all the tutorials I read worked.

I next ran into a small issue with the size of the varchar abstract_url field that contains the link to where the information about the DVD came from. Turns out that if you get that information from Amazon, which is a great place to find info about DVDS, you can run into URLs that are longer than 100 characters if you use their search field. Thanksfully this small error was easy to address with a quick search for PostgreSQL alter table.

Also, I discovered the Codepen Podcast this weekend, and really enjoyed listening to the latest episode while playing with my son. Good times!

Party On!