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)
- HFS log don’t know what files were deleted specifically. HOT 2
- Can hfs support version control of specific files? HOT 1
- a few feature requests HOT 5
- Update Chinese (Traditional) zh-tw Language HOT 1
- the latest release still not resolving the issue with eastern Asian characters in filenames HOT 5
- Translation to Polish language HOT 3
- Page empty In legacy browsers HOT 21
- cannot download console log file HOT 2
- error middleware plugin thumbnails: Input buffer contains unsupported image format HOT 10
- search box for installed plugins HOT 1
- Error when trying to POST upload HOT 2
- New HFS server 0.52.3 browse option not list files HOT 2
- Accounts imported in bulk via CSV are encountering certificate parameter issues during login HOT 1
- antibrute plugin HOT 3
- Can't create admin account from config file HOT 7
- admin pannel show frontend url wrong HOT 27
- [plugin] download counter HOT 2
- Account -> Redirect subtly breaks if you do not start with a slash HOT 14
- When will HFS support online opening and browsing of word/PPT/Excel? HOT 1
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.