x
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<div style="width: 50px; height: 50px"> <div class="Polaris-Labelled--hidden"> <div class="Polaris-Labelled__LabelWrapper"> <div class="Polaris-Label"> <label class="Polaris-Label__Text"></label> </div> </div> <div data-paper-dropzone-accept-value="" data-paper-dropzone-allow-multiple-value="true" data-paper-dropzone-disabled-value="false" data-paper-dropzone-disabled-class="Polaris-DropZone--isDisabled" data-paper-dropzone-focused-value="false" data-paper-dropzone-drop-on-page-value="false" data-paper-dropzone-render-preview-value="true" data-paper-dropzone-size-value="small" data-paper-dropzone-remove-previews-after-upload-value="true" data-controller="paper-dropzone" data-action="click->paper-dropzone#onClick drop->paper-dropzone#onDrop dragover->paper-dropzone#onDragOver dragenter->paper-dropzone#onDragEnter dragleave->paper-dropzone#onDragLeave" class="Polaris-DropZone Polaris-DropZone--sizeSmall Polaris-DropZone--hasOutline"> <div class="Polaris-DropZone__Overlay Polaris-VisuallyHidden" data-paper-dropzone-target="overlay" > </div> <div class="Polaris-DropZone__Overlay Polaris-VisuallyHidden" data-paper-dropzone-target="errorOverlay" > <div class="Polaris-LegacyStack Polaris-LegacyStack--spacingTight Polaris-LegacyStack--vertical"> <div class="Polaris-LegacyStack__Item"> <p class="Polaris-Text--root Polaris-Text--headingLg Polaris-Text--semibold"> This file type isn't accepted </p> </div> </div> </div> <div class="Polaris-DropZone__Container" data-paper-dropzone-target="container"> <div data-paper-dropzone-target="fileUpload" class="Polaris-DropZone-FileUpload Polaris-DropZone-FileUpload--small"> <div class="Polaris-LegacyStack Polaris-LegacyStack--spacingTight Polaris-LegacyStack--vertical"> <div class="Polaris-LegacyStack__Item"> <img width="20" src="data:image/svg+xml,%3csvg fill='none' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M20 10a10 10 0 11-20 0 10 10 0 0120 0zM5.3 8.3l4-4a1 1 0 011.4 0l4 4a1 1 0 01-1.4 1.4L11 7.4V15a1 1 0 11-2 0V7.4L6.7 9.7a1 1 0 01-1.4-1.4z' fill='%235C5F62'/%3e%3c/svg%3e" alt=""> </div> </div> </div> <div class="Polaris-DropZone__Loader Polaris--hidden" data-paper-dropzone-target="loader"> <span class="Polaris-Spinner Polaris-Spinner--sizeSmall"> <svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"> <path d="M7.229 1.173a9.25 9.25 0 1011.655 11.412 1.25 1.25 0 10-2.4-.698 6.75 6.75 0 11-8.506-8.329 1.25 1.25 0 10-.75-2.385z" /> </svg> </span> </div> </div> <span class="Polaris-Text--root Polaris-Text--bodyMd Polaris-Text--regular Polaris-Text--visuallyHidden"> <input type="file" id="" accept="" multiple="multiple" data-paper-dropzone-target="input" data-action="focus->paper-dropzone#onFocus blur->paper-dropzone#onBlur change->paper-dropzone#onChange" /> </span> <template data-paper-dropzone-target="previewTemplate"> <div data-paper-dropzone-target="preview" class="Polaris-DropZone__Preview Polaris-DropZone__Preview--sizeSmall"> <span class="target"></span> </div> </template> <template data-paper-dropzone-target="itemTemplate"> <span data-target="icon" style="border: none; background: none;" class="Polaris-Thumbnail Polaris-Thumbnail--sizeSmall"> <span class="Polaris-Icon"> <svg viewbox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" class="Polaris-Icon__Svg" focusable="false" aria-hidden="true"><path d="M17 4a1 1 0 0 1 1 1v13.5a1.5 1.5 0 0 1-1.5 1.5h-13a1.5 1.5 0 0 1-1.5-1.5v-17a1.5 1.5 0 0 1 1.5-1.5h4.5v2h-4v16h12v-13a1 1 0 0 1 1-1z"></path><path d="M8 5v6c0 1.206.799 3 3 3s3-1.794 3-3v-8c0-1.206-.799-3-3-3h-1v2h1c.805 0 .988.55 1 1v7.988c-.012.462-.195 1.012-1 1.012-.805 0-.988-.55-1-1v-6a1 1 0 1 0-2 0z"></path></svg> </span> </span> <span data-target="thumbnail" class="Polaris-Thumbnail Polaris-Thumbnail--sizeSmall"> <img src="#" alt=""> </span> </template> </div> </div></div>
1
2
3
<div style="width: 50px; height: 50px"> <%= paper_dropzone(size: :small, preview: true) %></div>
No notes provided.
No params configured.