msjit / testcasedb

TestCaseDB - Web based test case management
MIT License
40 stars 18 forks source link

[Task] Implement ability to upload attachments through v2 web api #71

Open agramian opened 9 years ago

agramian commented 9 years ago

Documenting my task to implement uploading attachments via the version 2 web api.

I will specifically focus on uploading images and make sure that works well before worrying about other types of attachments.

agramian commented 9 years ago

@joffems I have the attachment upload working through the web api however I cannot figure out how to generate the thumbnail and preview versions if it is an image. Where is the code performing this post-processing to generate the extra image sizes?

joffems commented 9 years ago

The code that triggers this is a built-in processor in paperclip. The processor uses the styles defined in uploads.rb.

The paperclip details can be found on the gem's github page. https://github.com/thoughtbot/paperclip

agramian commented 9 years ago

@joffems attachments uploading is implemented with PR #73 Currently it will only allow Result attachments. Once you have finished the uploads to apply to the other objects let me know and I can update.

agramian commented 9 years ago

@joffems PR #81 has the photos replaced with open source ones as well as some fixes/improvements to attachment uploading