Skip to content

edit uploaded file/image #140

@jetsekoopmans

Description

@jetsekoopmans

I upload a file with the following:
@post = Post.first()
result = Post.upload(uploaded_file.tempfile, uploaded_file.original_filename, content_type: uploaded_file.content_type)
@post.thumbnail = {"name" => result["name"], "__type" => "File", "url" => result["url"]}

When I want to edit this file I use the same code but I get the following error:
IOError at /posts
closed stream

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