Comments (6)
Implementing move
can be tricky with the ../
pattern, with inexistant folders, and so on, but I can give it a try ;)
For uploading from an URL directly, I have to look carefully what's possible for avoiding undesired behaviors:
- define a http timeout for download/upload (user-defined on upload or configured globally on API)
- how to avoid storing it on memory (connecting http.Response to io.writer by example)
- uploading from URL can be synchronous (UI wait for completion, but there is HTTP Timeout) or asynchronous with a queue of work (but there is a new dependencies for an AMQP-like broker, in order to respect 12factor)
Not a trivial one!
from fibr.
hi @varbhat
Thank you for message, glad you are happy with fibr :)
There is a rename feature, you must have edit right and click on the pencil icon (on hover)
For Copy/Cut/Paste, are you expecting a feature like a mv
command (for moving to another folder) ?
You can already download the file from URL.
When you browse with ui, the URL is suffixed with ?browser
query string for rendering UI. But if you omit that query param (e.g. http://fibr.domain/my_filename.jpg) it's the plain file read from disk.
Also, there is a download button on each file or folder (see capture). For files, it downloads the file directly, for folder, it streams you the folder content into a zip.
from fibr.
Hey @ViBiOh ,
Rename and Delete option didn't show before because I had forgot to set -authProfiles
.Now,they are showing properly like it is in the screenshot.
> For Copy/Cut/Paste, are you expecting a feature like a mv command (for moving to another folder) ?
YES
> You can already download the file from URL.
I am not talking about downloading file from fibr to machine by direct link. Direct link and Share links are implemented properly and I am thankful for it.
What I was talking about is downloading file by URL to my fibr instance remotely. I find a link that I would like to download to my remote machine. I would like to do it in fibr itself. I would suggest you to add small url box to Upload button(#upload-modal) where we can specify direct url . fibr then must download file from that direct url to the specified directory.In short,it must be remote file downloader which downloads the file to the specified directory.
from fibr.
Hey @ViBiOh ,
I think that you can use https://github.com/cavaliercoder/grab for file "Upload from URL" feature . For new download , you just create new client ,and for that client you send new request with path and url and it will proceed with download. Each client runs in own Goroutine too.
And ../
pattern is not really necessary . If that is little difficult,you can try absolute path where you specify path from the fibr root directory
from fibr.
Any update on download manager support? i mean "remote url download"
tinyfilemanager , php script has it
from fibr.
Hi @varbhat
For the remote download, I didn't have the time to focus on it yet. From my point of view, it needs:
- a new view for managing running downloads (context, list, etc)
- a deeper look at how to gracefully shutdown the server if there are running downloads.
- the library you point seems to be able to stop/resume. So I have to store the download informations somewhere (maybe the
.fibr/.json
file, but it's not designed for it yet)
- the library you point seems to be able to stop/resume. So I have to store the download informations somewhere (maybe the
- update the existing upload form to accept URL
If you want it as soon as possible, you can pipe wanted download to fibr
curl https://YOUR_WANTED_FILE | curl -u "admin:admin" -H "Accept: text/plain" http://localhost:1080/your_folder/ --form method=POST --form file=@-
It will upload the file with name -
(not optimal) but does that you want
from fibr.
Related Issues (17)
- hi, any demo ? HOT 5
- what means "multiple backends" in README HOT 2
- landing page any? HOT 1
- how to compile, cos there's no i386 release or kfreebsd or hurd like! HOT 3
- how to disable image and video thumbs ? HOT 2
- bug sec: user and pass visible in process list - feat to pipe or file based auth users HOT 9
- feat req : subpath event a full domain using prefix url HOT 11
- bug: empty authorization content due DNS needs, reverse proxy does not work HOT 2
- feat req / bug - no templates anymore, no customized interface ui HOT 7
- bug : Adding PublicURL for HTTP redirection do not work as expected HOT 4
- Your .dependabot/config.yml contained invalid details HOT 1
- Step by step readme HOT 1
- Files can't upload over wifi network HOT 2
- Why fibr is slower than exepection over wifi network ? HOT 6
- Your .dependabot/config.yml contained invalid details HOT 1
- feat req: way to deploy in no-docker style, as normal service HOT 5
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 fibr.