Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(FTP disk) 500 Error when creating a new folder - Directory not found #375

Open
rasouldanesh90 opened this issue Mar 2, 2024 · 2 comments

Comments

@rasouldanesh90
Copy link

Hi, has anyone come across this problem since I updated laravel to 10 when I try a folder I get this error.

lastModified does not exist

(FTP disk) 500 Error when creating a new folder - Directory not found

@Aartsie
Copy link

Aartsie commented Dec 5, 2024

We have the same issue after updating to laravel 11 and the ftp adapter is separated from the Flysystem package.
I have digging some deeper and found the issue which causes the problem.

The Flysystem FTP adapter which the laravel file manager is depending on is using ftp_mdtm() for retrieving the last modified date.

The problem is that ftp_mdtm() is working with files and not for folders. So it will return a -1 which causes the error.
I can make an check in the new folder function which checked if the adapter is an instance of flysystem-ftp or not like you do with the AWS adapter.

How do you @alexusmai think about this?

@Aartsie
Copy link

Aartsie commented Dec 19, 2024

@rasouldanesh90 if you want and have some time maybe you can test the branch if it works for you?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants