Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8118747
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T04:35:35+00:00 2026-06-06T04:35:35+00:00

I can successfully receive email from SendGrid and process its data. My problem is

  • 0

I can successfully receive email from SendGrid and process its data.
My problem is the emails attachments.

When I look at what is posted for each attachment I get something in the lines of:

"attachment12"=>#<ActionDispatch::Http::UploadedFile:0x00000008a793f8 
                  @original_filename="image036.png", 
                  @content_type="image/png", 
                  @headers="Content-Disposition: form-data; 
                            name=\"attachment12\";
                            filename=\"image036.png\"\r\n
                            Content-Type: image/png\r\n", 
                  @tempfile=#<File:/tmp/RackMultipart20120620-35076-1xav4k1>
                >

Rather than the

Array
(
  [attachment1] => Array
    (
      [name] => Upload.csv
      [type] => text/csv
      [tmp_name] => /tmp/phpo34iHI
      [error] => 0
      [size] => 76
    )
)

Which is quoted in the Parse API shown enter link description here
Obviously, Rails is being elegant as always.

However, my questions are:

  1. Where are the files, where they downloaded as implied? I cannot find them (I would be worried if this happened)

I am actually reading into ActionDispatch::Http::UploadedFile, according to the docs I should be able to do params[‘attachment12’].read

I will post my findings


  1. Production is Heroku so I would need to either stick the files in some sort of container like the DB, Mongo or S3
  2. I am guessing the file is actually at sendgrid but their support does not understand my question and revert me back to the parse api! There is probably a URL but I cannot get to the bottom of it with their support. Unfortunately.
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T04:35:36+00:00Added an answer on June 6, 2026 at 4:35 am

    The files are actually POSTed to your server but you get an ActionDispatch::Http::UploadedFile to work with. If you take a look at the class description you can see you have a couple of things available to you:

    The original_filename attribute obviously, but you can use .read to actually read out the contents and save it or you can probably pass the tempfile directly to whatever gem you are using.

    If you can tell me what kind of upload solution you use (paperclip, carrierwave) if any, I can help you a bit better.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I can successfully receive values from my web service so in that repect the
I've successfully connected to XMPP server (from android XMPP client), and I can send
How can I get a sellers PayPal email account after I've successfully purchased an
I have an ivy.xml that can successfully resolve all of its dependencies, except the
How can I get callbacks once data has been successfully written to disk in
Problem : Can't receive a file sent to my android app via XMPP and
I can successfully do this: App.SomeCollection = Backbone.Collection.extend({ comparator: function( collection ){ return( collection.get(
Can anyone explain how I can successfully get my processes communicating? I find the
the title already tells the question: you can successfully call the Print-Method on a
i have an iphone 3g and can successfully send text messages using the PHP

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.