Reno, NV    +1 (800)0 621-0871

Go back

Internship

Merged into ‘master’

  |  May 30, 2014

In our last post, upon having our pull request rejected, we decided to extend the idea of file attachment to uploading images on markdown text areas.

This drag&drop image upload feature seemed harder than the previous pull request we made (language statistics), considering we have to work on the server’s file system and the drag and drop UI itself,  since Earle and I are new to web development.

Now being familiar with the Rails development process, we searched first for gems that could help us to build this feature. Thankfully, we found CarrierWave for the server side implementation and Dropzone.js for the drag and drop event. All we need to do is read their documentation and learn how to use it.

Again, upon refactoring our code, we submitted another pull request and fortunately, this time, the community took our proposal well and the project owner, Dmitriy Zaporozhets (@randx), decided to merge our PR to their master branch. They even announced this news on their Twitter and mentioned that this will be included in the release of GitLab 7.0 on June 22, 2014. Awesome!