Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
54 lines (43 sloc) 1.81 KB
<h2 id="#direct-upload-using-uppy">Direct upload using uppy (<a href="" target="_blank" rel="noopener"></a>)</h2>
{% assign profile = form.fields.profiles.developer %}
{% assign avatar = profile.custom_images.avatar %}
{% assign image_s3_upload = avatar.image.s3_upload %}
<form hidden action="{{ image_s3_upload.direct_upload_url }}" data-s3-uppy="form">
{% for input in image_s3_upload.form_data %}
<input type="hidden" name="{{ input[0] }}" value="{{ input[1] }}">
{% endfor %}
<div class="row">
<div class="col-5">
<div class="card">
<div class="card-body">
<div id="drag-drop-area"></div>
<div class="col-7">
<div class="card">
<div class="card-body">
<p>Uppy plugins used:</p>
<p>Source code of this example: <a href="" target="_blank">JS</a>, <a href="" target="_blank">HTML</a></p>
<p>URLs to uploaded files:</p>
<ol data-s3-uppy="log"></ol>
{% content_for "head:bottom" %}
<link rel="stylesheet" href=",npm/@uppy/dashboard@1.3.0/dist/style.min.css">
<script src="" defer></script>
<script src="{{ 'modules/direct_s3_upload/Uppy.js' | asset_url }}" defer></script>
{% endcontent_for %}
You can’t perform that action at this time.