|
@@ -10,7 +10,9 @@ |
|
@@ -10,7 +10,9 @@ |
|
10
|
<% end %>
|
10
|
<% end %>
|
|
11
|
<% if form2.object.get_marker_type(@type_content) == 'file' %>
|
11
|
<% if form2.object.get_marker_type(@type_content) == 'file' %>
|
|
12
|
<% s3_direct_post = S3_BUCKET.presigned_post(key: "#{form2.object.get_file_path}${filename}", success_action_status: '201', acl: 'public-read') %>
|
12
|
<% s3_direct_post = S3_BUCKET.presigned_post(key: "#{form2.object.get_file_path}${filename}", success_action_status: '201', acl: 'public-read') %>
|
|
|
|
13
|
+
|
|
13
|
<%= form2.file_field :text_value, :class => "fileupload-field", 'data-url' => s3_direct_post.url, 'data-form-data' => s3_direct_post.fields.to_json, 'data-host' => URI.parse(s3_direct_post.url).host , 'data-type' => 'zip' %>
|
14
|
<%= form2.file_field :text_value, :class => "fileupload-field", 'data-url' => s3_direct_post.url, 'data-form-data' => s3_direct_post.fields.to_json, 'data-host' => URI.parse(s3_direct_post.url).host , 'data-type' => 'zip' %>
|
|
|
|
15
|
+
|
|
14
|
<% if form2.object.text_value.present? %>
|
16
|
<% if form2.object.text_value.present? %>
|
|
15
|
<div class="preview">
|
17
|
<div class="preview">
|
|
16
|
<% if Kanjai::PageContentMarker.image?(form2.object.text_value) %>
|
18
|
<% if Kanjai::PageContentMarker.image?(form2.object.text_value) %>
|