feat(client): add ability to upload multiple files in UploadBlock#297
feat(client): add ability to upload multiple files in UploadBlock#297neelneelneel merged 6 commits intodevfrom
Conversation
There was a problem hiding this comment.
Looks good overall, two things:
- The app developer should be able to control if multiple is on/off
- Value isn't set properly when there are multiple files. Users would not be able to access the location of the file in their scripts.
Remember to update the MigrationManager if changing the Block Definition.
|
Hi @neelneelneel , Thank you for the feedback! I've added a toggle switch to the options to allow the app developer to turn on/off multiple file uploading. Additionally, I updated the logic to set the value correctly for the file paths. I set the value to be a string of the file locations (separated by commas). I was also hoping for some clarification on your note about the |
|
@stelbailey So if you make changes to any of the data properties, as for removing properties and or adding new properties that are required. We have a migration manager that allows you to make structural changes to block definitions, to accommodate for the changes you made to the definition of the Upload Block. For example, old apps may be on version "0.0.alpha-1" if you had breaking changes for upload blocks that were used in "0.0.alpha-1" you would create a new migration function to directly modify those blocks in the previous version tothe changes you have made to the block. Ctrl + P for "MigrationManager" and take a look at how it gets called in our "BlocksRenderer" |
|
Hey @neelneelneel, I made the changes that you had requested, and I had Arash look at my branch and he thinks it looks good. We didn't find a need to update MigrationManager, but also am looking for feedback regarding that. When you get a chance could you re-review this PR? Thank you! |
|
JSON Block: |

No description provided.