Multiple files uploading on Ruby on Rails 3 [closed] - ruby-on-rails

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I would like to upload multiple pictures to my Rails 3 application. I am currently using Paperclip to upload a picture, and I have some post processing operations assigned to the model Photo.
I saw some samples on the net (integrating uploadify, swfupload or some other libraries), but none was very detailed, and each one misses some steps.
What is the simplest way to do this?

A good JQuery uploader is jQuery-File-Upload . It has some paperclip samples and you can find a demo here

#params = {
"FacialImage" => UploadIO.new(File.new('C:\temp\ATDD\Test\test\sachin.jpg'), "image/jpeg"),
"Login" => UploadIO.new(File.new('C:\temp\ATDD\Test\test\login.txt'), "application/json")
}

Related

What is the best ios library to handle Amazon S3 uploads? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I find that the default Amazon S3 library has many issues, including a strong reference delegate.
Is there an example / easy library that wraps the S3 library?
While I can't say for sure if it's "the best" you could try the AFAmazonS3Manager from AFNetworking. I haven't used it directly in the past but know people that have.
https://github.com/AFNetworking/AFAmazonS3Manager
It does appear to be the only non-Amazon AWS framework I can find.

iOS Flicker API to simply upload a public image? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this question
Is there suppose to be a Flickr API (provided by Flickr)?
If not, i see a couple of flickr "kits" on GitHub (objectiveflickr and flickrkit).
Which is preferred?
Or maybe it is better to just write my own custom routine (all i need to do is authenticate (if required) and upload an image)?
Your thoughts appreciated.
Their website lists APIs.
https://www.flickr.com/services/api/
First hit on Google for Flickr API.

Avatar rails generator [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 4 years ago.
Improve this question
I am trying to find some rails gem or any API delivering some random (non figurative) picture for avatar users, as the one that SO uses.
I tried gravatar but when I create some random hash and that I call the api via http://www.gravatar.com/avatar/#{hash}, I always get the same default image (independently of the hash)
So perhaps I misunderstood the purpose of gravatar, so is there any API or rails gem offering this service ?
Just add ?d=identicon to your query.
Docs here

Resize image on the client side with Rails [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 4 years ago.
Improve this question
I was wondering if there is any way to resize an image on the client side before it is uploaded to the server. I'm using nested attributes for the image portion of the form. Ideally, it wouldn't be uploaded immediately - just resized and it would only then be upload upon submission of the form.
Does anyone know of any plugins that will do this?
EDIT: If there are plugins that will work with IE that would be great too.
See these:
Image resizing client-side with javascript before upload to the server
http://www.rubydesigner.com/blog/resizing-images-before-upload-using-html5-canvas
Here's the code for the last one:
https://github.com/josefrichter/resize/blob/master/public/preprocess.js
https://github.com/josefrichter/resize

Capture screenshots for a Ruby on Rails application [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I have a Rails app that I want to capture a screenshot of a webpage when the user enters a url.
Is it possible to do this in Rails (is there any gem that would do this?)
If not, are there any reliable services that generate live screenshots
I use IMGKit gem for that: https://github.com/csquared/IMGKit
Related topic: How to respond_to PNG or JPG in Rails and generate image from HTML?
ScreenCap gem which uses PhantomJS under the hood. Grab whole pages or just specific divs, or even exact x y coordinates.
I have used GrabzIt for this. This is quite simple.

Resources