Comments (8)
I already solved it, I saw another issue:
The solution is to change the following in the php:
"disable_mime_detection" => 0,
For this:
"disable_mime_detection" => 1,
It would be nice if it can be configured from the browser.
from ifm.
What mime type was your file? I'd rather add some editable mime types than allowing the client to decide weather a file is editable.
from ifm.
It was a txt file... It was actually .com, because I downloaded it with Remote Upload, but I renamed it to txt... It's curl to x.com
from ifm.
Hm, weird. Could you upload this file to the demo?
from ifm.
Demo does not have remote upload option.
from ifm.
I already uploaded it by drag and drop.
https://ifmdemo.gitea.de/x.com
from ifm.
Thank you!
Weird, PHP thinks its mime type is "application/octet-stream", even if it contains only a single character. Maybe I should revise how the editability is defined, I had many corner cases where the PHP mime type detection is somehow wrong.
from ifm.
One solution I can think of is if it is an octet stream, detect if the first kb have no strange characters, in that case it could be edited as text.
from ifm.
Related Issues (20)
- Nothing displayed if "auth" => 1 HOT 19
- Content-Security-Policy incompatibilities HOT 5
- Overwrite warning even when file doesn't exist HOT 1
- Picture previews wonβt close HOT 5
- File creation w/ exists filename HOT 1
- RemoteUpload & AjaxRequest HOT 2
- Feature request: custom colours HOT 2
- Doesn't work on raspberry pi HOT 2
- chdir(): No such file or directory (errno 2) in /app/public/files/index.php on line 5926" HOT 2
- Folder upload doesn't work HOT 1
- How to use a non-user owner:group to delete files in a folder HOT 3
- Discussion: Current state HOT 3
- Outdated release (Oct 2020) HOT 1
- Hint on where the configuration is contained HOT 2
- ZipArchive Class Not Found HOT 1
- Directory Access? HOT 2
- Corrupted picture files HOT 3
- PHP Parse error: syntax error, unexpected '=>' (T_DOUBLE_ARROW) HOT 1
- [up] arrow does not return to previous directory 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 ifm.