When I click the preview of the resource for uploading the image to GCS, there is an error message "Cannot read properties of null (reading 'contentType')". The screenshot is as follows:
And when I click run of the resource for uploading the image to GCS, there is an error message "Upload2Firestrage: Cannot use Access level with a Uniform Access Level bucket. Please remove Access level from your upload query."
Hi there @cekhwang !
I'll gladly assist you with this!
Taking a look at the screenshot, I was just curious about what you were indexing in firebase.filepicker.files, sometimes you're using a string 0 and then you're using the integer 0. Should they be consistent for your file setup? Or is that intentional?
For the second error, this error occurs from trying to include an Access Level on a file upload to a bucket that uses Uniform Access Control. Does leaving the file blank lead to a successful upload?
I got the same problem and when I upload a "blank" file it leads to a successfull upload, but when I place any kind of info in "Upload data" it says "Cannot read properties of null (reading 'contentType')"
Certainly odd behavior here. Some more questions for extra context as it doesn't look like we've been able to reproduce this particular instance yet:
Are you seeing the files upload properly when clicking "Run"? What about "Preview" (even though the query fails)?
Is this happening consistently across files of different types?
Is there any additional messaging in the network tab of your browser's dev tools?
Finally, is this new behavior? And if so when did it start?
To expand on that last question - I know this thread is old but I just want to pull things apart a bit in case we're seeing the same symptom show up for different reasons.