Comments (13)
Hm, I can't reproduce the issue.
Can you provide a steps to reproduce?
Even better if you are able to reproduce it at the http://fm.devale.pro demo site.
The full error trace can help a lot as well.
from richfilemanager-php.
It doesn't happen on your demo. Maybe because I'm on Windows? I assume your demo isn't.
The error is:
PHP Warning: mime_content_type(C:/inetpub/wwwroot/dev/downloads/upload.txt): failed to open stream: No such file or directory in C:\inetpub\wwwroot\dev\fm\connectors\php\vendor\servocoder\richfilemanager-php\src\Repository\Local\ItemModel.php on line 376 PHP Warning: filemtime(): stat failed for C:/inetpub/wwwroot/dev/downloads/upload.txt in C:\inetpub\wwwroot\dev\fm\connectors\php\vendor\servocoder\richfilemanager-php\src\Repository\Local\ItemModel.php on line 211
If it's just me, then I can obviously live with it, as my fix seems to hold OK.
from richfilemanager-php.
It's not because of Windows. I have my local copy on Windows as well.
I think this could be a bug and I would like to reproduce it to find the reason.
Does this happen each time?
With both existing and newly uploaded files?
Or there is a specific scenary?
Also I can see that that your files folder is outside the RFM plugin folder, right?
Share you configuration, please. Only files which are deffer from the source. Possible targets: filemanager.php, config.local.php, filemanager.config.default.json.
from richfilemanager-php.
I'm testing it by uploading a file and then removing it again. But also older uploaded files get the same error.
I haven't touched config.local, as I have my config in filemanager.php. While on the subject, is there an easy way to switch to an images config? I'm using CKEditor(4) and specify a type=images in my URL, but don't know how to limit FM to only show images...
config.local.txt
filemanager.config.json.txt
filemanager.php.txt
I'm on php 7.0.13
from richfilemanager-php.
Thanks for details, I will check a bit alter.
If you would like to limit RFM to serve and display the images only then limit extensions list "security.extensions.restrictions" in the config.local.php file.
If you wish to use client-side filtering (affect dispaying only) use the ?filter=image
query param in your URL as described in the wiki article
from richfilemanager-php.
I have commited a fix for your issue.
Try the latests version of ItemModel.php file and let me know if it works for you.
from richfilemanager-php.
I have pushed another commit. I don't think that it will be sufficient now to replace only the ItemModel.php file. I recommend you to replace all the repo classes to avoid errors.
from richfilemanager-php.
Thanks for this. I've used the latest and everything works like a charm. Thank again.
from richfilemanager-php.
Could you release this version please? The error let the client not update the UI, though the item (tried it with a folder) has been deleted.
from richfilemanager-php.
Will do at the end of this week.
If you are about to install this package separately, as I advised you in psolom/RichFilemanager#287, then you can write the package as "servocoder/richfilemanager-php": "dev-master"
in your composer.json
file and it will take the latest commits.
from richfilemanager-php.
@servocoder Thanks! Using dev-master is what I was trying to avoid.
from richfilemanager-php.
Released: RFM v2.7.1 + RFM-PHP v1.2.1
@robsch update to the latest version(s).
from richfilemanager-php.
@servocoder Great news, thanks!
from richfilemanager-php.
Related Issues (20)
- IIS bug: "Directory path '/' is invalid"
- Сustomizable upload parameter name
- PDF preview is broken HOT 1
- Upload to S3 not working HOT 11
- error on upload file in Local storage HOT 2
- Documentation update for manual install HOT 1
- Upload big size file error HOT 1
- Seek files/folders with wildcard pattern
- Enable public editing of wiki HOT 3
- CopyURL HOT 1
- Error enabling thumbnails on existing and populated directory
- Failed to flush buffer
- Multiple upload response only one file
- Issue with S3 + Encryption on file rename
- always receiving access denied creating/upload item to AWS s3
- just a statement of fact
- S3 Image shows 403 forbidden error
- Uploading a GIF results in ArgumentCountError
- PHP 8 deprecation warnings
- Is this support WEBP image upload? 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 richfilemanager-php.