Upload amazon

Rodrigo's Avatar

Rodrigo

13 Nov, 2013 08:19 AM

Just last one step is sent to amazon s3, why????

  <!-- We initialize the Transloadit plugin here -->
  <script type="text/javascript">
    $(function() {
      // We reference our html form here
      $('#produtoForm').transloadit({
        // We want to wait for all encodings to finish before the form is submitted.
        wait: true,
        // The upload to Transloadit should start as soon as the user selects some files.
        triggerUploadOnFileSelection: true,

        params: {
          auth: {
            // This is your API key.
            key: "c93223e951a2cd9f9ce82987c7977d8e"
          },
          // Our assembly instructions just contain two steps for now. You can name the steps whatever you want.
          steps: {
         jpg_thumb: {
                  use: ":original",
                  robot: "/image/resize",
                  width: 75,
                  height: 75,
                  resize_strategy: "pad",
                  background: "#ff0000",
                  format: "jpg"
                },
                png_with_watermark: {
                  use: ":original",
                  robot: "/image/resize",
                  width: 125,
                  height: 125,
                  format: "png",
                  watermark_url: "https://transloadit.com/img/logo.png&quot;,
                  watermark_position: "bottom-right",
                  watermark_size: "10%"
                },
                original_in_sepia_and_rotation: {
                  use: ":original",
                  robot: "/image/resize",
                  width: 125,
                  height: 125,
                  sepia: 80,
                  rotation: 15
                }, "export": {"robot": "/s3/store","key": "***","secret": "***,"bucket": "mdmfotoproduto"
              }
          }
        }
      });
   });
  </script>

  1. Support Staff 2 Posted by Tim Koschützki on 13 Nov, 2013 08:25 AM

    Tim Koschützki's Avatar

    Hey Rodrigo,

    you need to use the use" parameter.

    Add

    "use": [;, "jpg_thumb", "png_with_watermark", "original_in_sepia_and_rotation"],

    to your export step and it will submit all steps (including the original uploaded files) to S3.

    Kind regards,
    Tim

    Co-Founder Transloadit
    @tim_kos

  2. 3 Posted by Rodrigo on 13 Nov, 2013 08:39 AM

    Rodrigo's Avatar

    It worked tks!

    Why when I send an image to s3 transloadit create folders in my bucket?

    For example: /mdmfotoproduto/11/dab7beeed617df0b586c40018148af/applewood.png?

  3. Support Staff 4 Posted by Tim Koschützki on 13 Nov, 2013 10:57 AM

    Tim Koschützki's Avatar

    It is because of the default value of the "path" paramtee of the s3 robot. Please check the docs here https://transloadit.com/docs/conversion-robots#s3-store

    Kind regards,

    Tim Koschuetzki
    Co-Founder Transloadit
    @tim_kos

  4. Support Staff 5 Posted by Tim Koschützki on 10 Dec, 2013 06:45 AM

    Tim Koschützki's Avatar

    I am going to close this ticket for now. Please feel free to reopen it again if you have further questions.

    Kind regards,
    Tim

    Co-Founder Transloadit
    @tim_kos

  5. Tim Koschützki closed this discussion on 10 Dec, 2013 06:45 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

Recent Discussions

17 Sep, 2014 11:38 PM
25 Aug, 2014 12:05 PM
14 Aug, 2014 07:02 AM
13 Aug, 2014 12:21 PM
29 Jul, 2014 12:48 PM

 

23 Jul, 2014 01:49 PM
22 Jul, 2014 11:09 AM
21 Jul, 2014 07:29 AM
18 Jul, 2014 12:49 PM
17 Jul, 2014 08:25 AM
17 Jul, 2014 07:22 AM