GithubHelp home page GithubHelp logo

Comments (11)

psolom avatar psolom commented on June 3, 2024 1

There is a PR with potential fix: https://github.com/servocoder/RichFilemanager-PHP/pull/48/files

It's merged, but not versioned yet. Try to apply the fix manually and let me know if this helps for your case. Waiting for your feedback.

from richfilemanager-php.

psolom avatar psolom commented on June 3, 2024 1

Awesome. It will be included in the next version.

from richfilemanager-php.

psolom avatar psolom commented on June 3, 2024

Curious. I have just checked the upload at my AWS account and it works smoothly. Few ideas:

  1. If you can create folders at S3 this most likely means the PutObject action is allowed within AWS policies. Anyway, recheck your bucket properties/policies.

  2. I can see you don't set root folder for local storage explicitly. This may cause an issue, depending on your local OS/webserver permissions/policies. FYI: by default it's a "userfiles" folder of your server document root.

S3 errors are not logged into the log file yet. I'm gonna to fix this. The best thing you can do now is debug the code yourself. Let me know if you will find that the error is caused by PHP connector.

from richfilemanager-php.

florent-dehanne avatar florent-dehanne commented on June 3, 2024

Thanks for your reply.

I tried to update permissions on my bucket in AWS.
In Permissions > Access Control List > Public Access : Write and Access are set to Everyone but upload still not working.

I've also added local configuration :

$config_local = [
  'options' => [
    'serverRoot' => true,
    'fileRoot' => '/uploads/websites/'
  ]
];
$local = new \RFM\Repository\Local\Storage($config_local);

from richfilemanager-php.

psolom avatar psolom commented on June 3, 2024

I can't reproduce. Try to debug, or wrap the code in filemanager.php with try-catch block and echo error message.

from richfilemanager-php.

rakeshaspl avatar rakeshaspl commented on June 3, 2024

I also face same above issue.

from richfilemanager-php.

psolom avatar psolom commented on June 3, 2024

I also face same above issue.

The same request to you:

Try to debug, or wrap the code in filemanager.php with try-catch block and echo error message.

from richfilemanager-php.

rakeshaspl avatar rakeshaspl commented on June 3, 2024

this is the error I am getting.
Warning: filesize(): stat failed for s3://fads6-test01/richFileManager/2007_285517cc25b5879e.jpg

When I return file size static for testing then getting a response below.

{errors: [{id: "server", code: "500", title: "File upload aborted", meta: {arguments: []}}]}
errors
:
[{id: "server", code: "500", title: "File upload aborted", meta: {arguments: []}}]
0
:
{id: "server", code: "500", title: "File upload aborted", meta: {arguments: []}}
code
:
"500"
id
:
"server"
meta
:
{arguments: []}
arguments
:
[]
title
:
"File upload aborted"

Is this something related to bucket policy?

from richfilemanager-php.

psolom avatar psolom commented on June 3, 2024

Not sure. Can you also expose the Exception trace list?

from richfilemanager-php.

agustindev avatar agustindev commented on June 3, 2024

i have same issue, how did u fix it?

from richfilemanager-php.

agustindev avatar agustindev commented on June 3, 2024

Great, its working (Y). Thank u

from richfilemanager-php.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.