1. Matthew Frazier
  2. flask-uploads
  3. Issues
Issue #1 resolved

Make the "folder" argument implicit

Dan Jacob
created an issue

The folder argument to save() should be implicit, i.e. is calculated from the "name".

For example, if I pass in:

photos.save(name="foo/bar/baz")

the "folder" argument is found from the name, and os.makedirs() called implicitly.

Comments (2)

  1. Matthew Frazier repo owner
    • changed status to open

    I won't remove the folder argument completely, for two reasons:

    • Backwards compatibility, and
    • One may not wish to use a custom name when storing uploads, but would like them sorted into a folder.

    But I will allow it to be calculated from name if name is provided and folder is not.

  2. Log in to comment