Skip to content

Direct upload not working #123

Open
Open
@0000sir

Description

@0000sir

I'm having v3.0.1 with rails 5.2.0, try upload file to Minio with protocol S3.
File was uploaded to rails backend and then transfer to minio later, I checked this views file app/views/trestle/active_storage/_has_one_field.html.erb it do has direct_upload: true instructions, is there anything I'm missing, help me fix this please.

The code I'm using:

form do |video|
      text_field :title
      select :category_id, Category.all, {}
      select :serial_id, Serial.all, include_blank: "select"
      active_storage_field :file, multiple: true, direct_upload: true
  end

HTML it generates:

<div class="form-group"><label class="control-label" for="video_file">Video</label><div class="active-storage">

  <div class="progress" style="display: none">
    <div class="progress-bar progress-bar-striped active"></div>
  </div>

  <input class="active-storage__field" type="file" name="video[file]" id="video_file">
</div>
</div>

A progress bar was generated, but nothing happened when I submit the form.

Anybody know this, pls help, thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions