1
0
Fork 0

Add .jpeg to list of default upload extensions

Dieser Commit ist enthalten in:
angus 2021-03-12 21:12:26 +11:00
Ursprung e7a1472a1c
Commit 3bb244be79
3 geänderte Dateien mit 3 neuen und 3 gelöschten Zeilen

Datei anzeigen

@ -36,7 +36,7 @@ class CustomWizard::Field
min_length: nil min_length: nil
}, },
upload: { upload: {
file_types: '.jpg,.png' file_types: '.jpg,.jpeg,.png'
}, },
dropdown: { dropdown: {
prefill: nil, prefill: nil,

Datei anzeigen

@ -90,7 +90,7 @@
"id": "step_2_field_7", "id": "step_2_field_7",
"label": "Upload", "label": "Upload",
"type": "upload", "type": "upload",
"file_types": ".jpg,.png" "file_types": ".jpg,.jpeg,.png"
} }
], ],
"description": "<p>Because I couldnt think of another name for this step <img src=\"/images/emoji/twitter/slight_smile.png?v=9\" title=\":slight_smile:\" class=\"emoji\" alt=\":slight_smile:\"></p>" "description": "<p>Because I couldnt think of another name for this step <img src=\"/images/emoji/twitter/slight_smile.png?v=9\" title=\":slight_smile:\" class=\"emoji\" alt=\":slight_smile:\"></p>"

Datei anzeigen

@ -33,6 +33,6 @@ describe CustomWizard::FieldSerializer do
).as_json ).as_json
expect(json_array[0][:format]).to eq("YYYY-MM-DD") expect(json_array[0][:format]).to eq("YYYY-MM-DD")
expect(json_array[3][:number]).to eq(4) expect(json_array[3][:number]).to eq(4)
expect(json_array[6][:file_types]).to eq(".jpg,.png") expect(json_array[6][:file_types]).to eq(".jpg,.jpeg,.png")
end end
end end