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

Can not upload file #44

Open
IvanSeagull opened this issue Apr 18, 2022 · 0 comments
Open

Can not upload file #44

IvanSeagull opened this issue Apr 18, 2022 · 0 comments

Comments

@IvanSeagull
Copy link

Describe the bug

I need to attach files when I create a new record in a table. With empty files or files that have a small size, everything works perfectly. But for some reason, when you try to attach a pdf with a size of >3 mb, an error pops up in the panel. The console doesn't have it though. Therefore, I have a question: is there a default limit on the file size, and if there is one, is it possible to change it somehow?

Installed libraries and their versions

Here is the code snippet where I handle file uploading

uploadFeature({
          provider: { local: { bucket: path.join(__dirname, '../public/trips') } },
          properties: {
            file: 'registration.file',
            filePath: 'registration.path',
            filename: 'registration.filename',
            filesToDelete: 'registration.toDelete',
            key: 'registration.key',
            mimeType: 'registration.mimeType',
            bucket: 'registration.bucket',
          },
          multiple: true,
          uploadPath: (record, filename) => `${record.id()}/registration/${filename}`,
        }),
@IvanSeagull IvanSeagull changed the title Can not upload file on creation Can not upload file Apr 20, 2022
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

1 participant