Introduction Shrine is file uploading library written in Ruby, it’s compatible with plain ol’ Ruby, Rails, Hanami, and any other Rack-based web framework. You should use Shrine if you are starting a new project or want to upgrade your existing solution to use something more flexible than carrierwave, paperclip or refile. Shrine is a library for file uploading and provides tools to build plugins on
For many API applications, there comes a time when the application needs to save images uploaded to the server either locally or on a CDN. Luckily for us, Elixir and Phoenix provide the tools we need to build a simple image upload API. The Simple API Let’s define exactly how this API is supposed to work: accept a request containing a base64 encoded image as a field preserve the image extension by
基本的に以下のページと同じ内容です。 Node.js/ExpressJSでのファイルのアップロード http://d.hatena.ne.jp/zebevogue/20120828/1346140796 ただし、何カ所か修正する必要がありました。 expressコマンド 流れとしては 1. get '/'で routes/index.js#index が呼ばれてフォームを表示し、 2. post 'upload'で routes/upload.js#upload が呼ばれてアップロードされたファイルを処理する という感じで良い。 まず1.からやる。 app.jsを編集する 下記のように編集する
この記事はなに? ベーシック Advent Calendar 2016 20日目です。 機会があって100万枚近い画像を3時間弱でアップロードできるアップローダを作成しました。今回はアップローダを作成する際の手法をご紹介したいと思います! そもそも何故やることになったのか 僕の携わっているサービスが全面リニューアルをおこなっているのですが、要件の中に、MongoDBからMySQLに乗り換えるというものがありました。その際に大量にある画像を下記理由から再アップロードする必要が出てきました。 MongoDBからMySQLへの変更に伴い、データの持ち方が大きく変わったので、画像パスを再登録する必要があった。 画像を保存しているディレクトリ構造がいけてなく、S3上での検索が困難だったので整えたかった。 また、画像のアップロード作業をする際は、サービスを一時停止、また万が一の為にやり直しをするバッフ
October 31, 2016 Better File Uploads with Shrine: Processing Whenever we accept file uploads, we usually want to apply some processing to the files before storing them to permanent storage. We might want to generate image thumbnails optimize images transcode videos extract video screenshots … One approach is to process files on-the-fly, which is suitable for fast processing such as image resizing.
2007-10-02 At FiveRuns, we have a set of installed clients which upload data to our service periodically. Because of the way it is implemented, Rails is quite slow in handling file uploads. Merb is an alternative, albeit much simpler, stack to Rails which handles file uploads in a much saner manner. The performance difference is quite large. Optimizations Merb -- turned off ActiveRecord, environme
September 11, 2016 Better File Uploads with Shrine: Motivation It’s been over a year since I started working on Shrine, and during that time Shrine has acquired a lot of cool features, the ecosystem has grown significantly, and many people are already using Shrine in production. Before I go in depth explaining all the cool things that you can do with Shrine, I thought it would be good to take a st
We stand with the brave people of Ukraine. Stop the war. Find out how you can help . People are sharing more and more photos and videos every day, but mobile networks remain fragile. Platform APIs are often a mess and every project builds its own file uploader. There are a thousand one-week projects that barely work, when all we need is one real project. One project done right. We are going to do
I recently released tus-ruby-server, a Ruby server implementation for tus, an open protocol for resumable file uploads built on HTTP. Protocol Let’s first briefly explain what is tus. Tus is a specification that describes the communication between the client and the server through HTTP for achieving reliable and resumable file uploads, even on unstable networks. Check out the demo. “Resumable uplo
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く