Skip to content
This repository was archived by the owner on Oct 12, 2025. It is now read-only.
This repository was archived by the owner on Oct 12, 2025. It is now read-only.

Upload the file via providing url instead of sending file via form #32

Open

Description

@asiniy

Hey!

I found there is no this ability here, and we have to implement it in the future. What do you think?

Activity

  1. keichan34 commented on Jul 22, 2016

    @keichan34
    Owner

    Sounds good! My only concern is that it could be used to DoS a site by sending a URL with a massive file, but so we'd probably need to make a "maximum URL download size" option for Exfile

  2. asiniy commented on Jul 22, 2016

    @asiniy
    ContributorAuthor

    I thought about implementing validate_size() validator, like validate_content_type, which I'm implementing right now

  3. asiniy commented on Jul 22, 2016

    @asiniy
    ContributorAuthor

    It's easier to specify file size for each model instead of creating one global value

  4. keichan34 commented on Jul 22, 2016

    @keichan34
    Owner

    A validate_size validator would have to run after the file is downloaded from the URL -- my particular concern is that an end user could enter a URL (either maliciously or by accident) to a file that is larger than the available space on the server, for example. The reason there isn't a limit right now is because Plug has its own limit for POST bodies and most reverse proxies do as well.

  5. asiniy commented on Jul 22, 2016

    @asiniy
    ContributorAuthor

    @keichan34 hm, you're right here. We already have file limit, isn't it?

  6. keichan34 commented on Jul 22, 2016

    @keichan34
    Owner

    I'm not sure I understand. Which file limit?

  7. keichan34 commented on Jul 22, 2016

    @keichan34
    Owner

    Oh, I see, yeah. I think we can use that instead of making a new global configuration variable.

  8. asiniy commented on Jul 22, 2016

    @asiniy
    ContributorAuthor

    @keichan34 yes, but I still want to implement this feature.

  9. keichan34 commented on Jul 22, 2016

    @keichan34
    Owner

    Got it. Thanks! :)

  10. asiniy commented on Jul 22, 2016

    @asiniy
    ContributorAuthor

    Mark this issue as milestone?

  11. added this to the v0.4 milestone on Jul 22, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions