Comments (12)
@rejetto Haha, it doesn't matter. I don't upload files through authentication now. I can achieve my purpose by just specifying the access rights to the directory. Thank you very much for your timely answer.
from hfs.
yes, it does.
Refer to https://hfs-3.apidog.io/
from hfs.
for authentication you can use standard http authentication, possibly with https to avoid clear-text passwords
from hfs.
@rejetto Thank you very much for your reply. I used the following method to upload files, but still got an error.
curl -X POST --header 'x-hfs-anti-csrf: 1' -u "admin:P@qqq" -H "Content-Type: application/octet-stream" --data-binary "@/root/a.txt" http://127.0.0.1/soft/
Use this method to report an error,this log:
Bad Request
from hfs.
thanks for reporting!
i will now update the documentation to specify that POST requires multipart, while PUT doesn't.
Refer to this to know correct usage with curl
https://github.com/rejetto/hfs/wiki/Upload#from-command-line
from hfs.
@rejetto OK, all right. By the way, I would like to ask again, how to overwrite existing files when uploading through API
from hfs.
do you want all uploads to always overwrite?
from hfs.
@rejetto I will cover it often。always overwrite。
from hfs.
then you may want to just change this option
otherwise, you can see that i just updated API documentation to include overwrite
from hfs.
@rejetto Thank you very much, that's definitely covered.
from hfs.
This is my command to upload files. Because the authentication method is not enabled, I achieve the purpose by setting the access permissions of the directory. Everyone can upload it, and only designated people can view/modify and delete it.
curl -F [email protected] http://192.168.70.193/soft/software_list/
from hfs.
you don't need authentication, or you can't make it work?
from hfs.
Related Issues (20)
- Appending #LOGIN not working in 0.53.0rc14 HOT 3
- When hfs downloads files on the browser, can I choose to download the file to a specified disk location? HOT 5
- Logout not working Properly Sometimes HOT 12
- mark the latest files or folders with "new" HOT 3
- How to modify the creation time. HOT 2
- Folders shared with same name display path in VFS admin menu HOT 3
- Comments for uploaded files are written & displayed incorrectly via descript.ion file HOT 8
- Linking a descript.ion file for a virtual folder (home) doesn't work HOT 5
- bro make hfs over the docker container HOT 3
- Cannot access through one of 2 ips HOT 4
- Addressing CVE-2024-23692 in documentation HOT 2
- Feature to adjust dialog backdrop in login page HOT 7
- Select multiple listen IP addresses HOT 3
- Crash during search for a large number of files. HOT 6
- Copy feature HOT 3
- [Windows] Integration of IIS as Proxy HOT 2
- port forwardig and listen on internal port not working HOT 34
- "Missing permission" if allowed to see but not download HOT 1
- files/folders with "\" in the name cannot be interracted with HOT 2
- Node.js service crashes HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hfs.