Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BE_Zip not accepting multiple file paths #197

Open
nomfjmt opened this issue Jun 2, 2021 · 3 comments
Open

BE_Zip not accepting multiple file paths #197

nomfjmt opened this issue Jun 2, 2021 · 3 comments

Comments

@nomfjmt
Copy link

nomfjmt commented Jun 2, 2021

When a list of file paths (return-delimited multi-line text) is passed as the first parameter to BE_Zip, it returns -1 error and nothing happens. Meanwhile, when a single path is passed, it will generate the zip file as specified.
This can be reproduced on both MacOS and iOS.

Environment:
MacOS 11.4
FileMaker Pro 19.2.2
iOS 14.0.1
iOS App SDK 19.2.2
BaseElements Plugin 4.1.4

@nickorr
Copy link
Member

nickorr commented Jun 3, 2021

nomfjmt,

I don't get the same behaviour as you. I can do :

BE_Zip ( BE_FileSelectDialog ( "" ) )

And select multiple files in the dialog, and the plugin returns 0 and the zip file is created as expected.

Do all the files exist - check with the BE File Exists function.

What characters are you using for the list separators?

Cheers,
Nick

@nomfjmt
Copy link
Author

nomfjmt commented Jun 7, 2021

Nick,

Thank you for your reply.
After an investigation, I found that BE_Zip 4.1.4 returns -1 error if the file-paths list text ends with a return character ( Char(13) ). If I remove the last return character, it worked as expected.
Meanwhile, for your information, BE_Zip 4.1.3 worked fine regardless of whether the list text ends with Char(13) or not.

Yours,
nomfjmt

@nickorr
Copy link
Member

nickorr commented Jun 7, 2021

Ah, thanks. That's a change in behaviour we weren't expecting. We'll put in a fix to make it work the same as the 4.1.3 version.

Thanks,
Nick

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants