In the IDE I can view a file with no issues, but viewing the same file on my device return the 'input document ... is encrypted' error
file-
mobile app-
ide-
In the IDE I can view a file with no issues, but viewing the same file on my device return the 'input document ... is encrypted' error
file-
mobile app-
ide-
Hey @Peter_Kunz ,
I was able to run this as a demo in the mobile app view, but I’m not seeing the exact “input document … is encrypted” error—rather, I’m seeing a different error
I’m also running into a second issue: in my Retool Storage query, the “Upload file” action isn’t detecting the File Input component automatically
Note: When I trigger the Storage query programmatically, the File Input works as expected.
Retool Team—could you please take a look at these issues?
Thanks,
Thanks for reaching out, @Peter_Kunz! Do you know if the file in question is actually password protected? I'm guessing not, given the fact that you're able to see it in the IDE environment.
This is what I see in the IDE:
wait, it actually gives you the option to ignore the encryption??? gees, i feel like that's risky af to provide users.... i mean, thats 1 less step needed to try and do something malicious.
i wonder what it does

I've done some additional research on this and the specific error that you're seeing is being thrown by the pdf-lib library, which does not support encrypted documents as outlined here.
What makes this a little tricky is the fact that documents can exist in a read-only state, which isn't really encrypted but does still cause pdf-lib to throw an error. There's a good conversation on the topic here.