-
We're experiencing problems with the PnP FilePicker which we use on a SPFx solution on our Sharepoint site. File formats .PNG and .JPEG uploads correctly, but PDF give 500 POST server error in most of the attempts.
I am unfortunately without debugging options, I don't have access to WebPack folder in browser Inspector -> Sources, VS Code debugger in Edge has only unbound breakpoints. For some reason my I have searched this repo, looked through issues, and browsed samples. I can't find relevant info, will appreciate if someone corrects me on that part. Here is part of the code, the FilePicker component from PnP. Could anyone reason about why this could fail? All input welcome.
OnSave method:
EDIT: If I remember correctly from a colleagues debug session, file size is non-zero in |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
After a lot of Ctrl+F5 and salt over both shoulders, I have access to some ghost breakpoints, thereby debug access to FilePicker.js. Can the file absolute value be null? |
Beta Was this translation helpful? Give feedback.
-
It turned out that an empty URL was difficult to fetch anything from. Quick fix, including |
Beta Was this translation helpful? Give feedback.
It turned out that an empty URL was difficult to fetch anything from. Quick fix, including
any
: