pglombardo / PasswordPusher

🔐 Securely share sensitive information with automatic expiration & deletion after a set number of views or duration. Track who, what and when with full audit logs.
https://docs.pwpush.com
Apache License 2.0
1.98k stars 343 forks source link

Unable to read push files #2385

Open Abhishek0237 opened 1 month ago

Abhishek0237 commented 1 month ago

Hey! I hope you are doing well!

We have just enabled file pushes and are using local storage for uploads. We have mapped the drive on a Windows computer using Samba but whenever the client uploads the files. It doesn't show any file extensions. We cannot determine which kind of file clients uploaded like it excel,png or any other file.

Please find the below screenshot

issue

pglombardo commented 1 month ago

Hi @Abhishek0237 - that is by design. What is the use case? Why would you need to see the files?

If you don't mind me asking...

Abhishek0237 commented 1 month ago

The thing is suppose the client takes the screenshot of any information and sent us as an image(png) file instead of properly write in the world or notepad file. How we can know at first seen either it is just image file or it's proper document. because we don't want to bother the client again and again.

I know we can open files with the browser to see the content but I think it's not practical

pglombardo commented 1 month ago

Ah ok - yeah that is outside the use case for Password Pusher. By design files are obscured for security. Currently, the only way is to view the push and download the files locally.

Of course, you could automate this with the JSON API to automatically download files and place them somewhere on the samba drive...

Abhishek0237 commented 1 month ago

Is Admin can see the file on Secret Portal?

pglombardo commented 1 month ago

Unfortunately no.

How we can know at first seen either it is just image file or it's proper document. because we don't want to bother the client again and again.

I don't understand why you would need to bother the client again and again. You view the push, and it tells you what type of file it is and shows the file name. From there you can download the files. Am I missing something?

Abhishek0237 commented 1 month ago

on local storage, it's not showing what type of file it is that's why i', asking

Abhishek0237 commented 1 month ago

One thing more @pglombardo Can we increase file size for file pushes and what is the default size?

Abhishek0237 commented 1 month ago

no worries I have adjusted nginx for file size

Abhishek0237 commented 1 month ago

One last question I have there Please can we check on "Use a 1-click retrieval step" by default

pglombardo commented 1 month ago

One last question I have there Please can we check on "Use a 1-click retrieval step" by default

The docs on setting the default for that option is here. You can set the environment variable (PWP__FILES__RETRIEVAL_STEP_DEFAULT=true) or modify the setting in your settings.yml.