Skip to content

Change Filename during upload #100

@manusharma1

Description

@manusharma1

Hi @dr-dimitru

I was trying to give fileName:'manutest.jpg', , Its not working

      var file = template.find('.image-upload-class').files[0];
      if (file) {
        var uploadInstance = Images.insert({
          file: file,
          fileName:'manutest.jpg',
          streams: 'dynamic',
          chunkSize: 'dynamic'
        }, false);

How can I specify the file name during insert?, Is there is any way out? I want to change the filename to different name and don't want to keep default name.

Any Possibility?

Thanks and Best Regards,
Manu

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions