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 #356

Open
7ammer opened this issue Jun 28, 2023 · 3 comments
Open

Comments

@7ammer
Copy link

7ammer commented Jun 28, 2023

When creating a folder via FTP disk I get the following status error:

- Directory not found
500 - Unable to retrieve the last_modified for file at location: test7.

The line that throws is line 138 in the ContentTrait.php file.

...
'timestamp'  => $adapter instanceof AwsS3V3Adapter ? null : Storage::disk($disk)->lastModified($path),
...

When I reload the page the folder shows so it does get created.
If I put Storage::disk($disk)->directories() inside the directoryProperties method I can see the new folder but when calling Storage::disk($disk)->lastModified($path) it fails. So it looks like it's unable to get the meta data. I'm not sure.

My disk config is pretty simple:

        'ftp' => [
            'driver' => 'ftp',
            'host' => 'xyz',
            'username' => 'abc',
            'password' => '123',
            'ssl' => true,
        ],
@volosan
Copy link

volosan commented Jul 18, 2023

The same issue with Laravel 10 and FTP disk. Fixed with commenting lines 137 and 138 in vendor/alexusmai/laravel-file-manager/src/Traits/ContentTrait.php:

'timestamp'  => $adapter instanceof AwsS3V3Adapter ? null : Storage::disk($disk)->lastModified($path),
'visibility' => $adapter instanceof AwsS3V3Adapter ? null : Storage::disk($disk)->getVisibility($path),

After page refreshing new folders are disappears.

@volosan
Copy link

volosan commented Jul 19, 2023

The same issue with Laravel 10 and FTP disk. Fixed with commenting lines 137 and 138 in vendor/alexusmai/laravel-file-manager/src/Traits/ContentTrait.php:

'timestamp'  => $adapter instanceof AwsS3V3Adapter ? null : Storage::disk($disk)->lastModified($path),
'visibility' => $adapter instanceof AwsS3V3Adapter ? null : Storage::disk($disk)->getVisibility($path),

After page refreshing new folders are disappears.

In my case it's was permissions issue. Sorry)

@rasouldanesh90
Copy link

The same issue with Laravel 10 and FTP disk. Fixed with commenting lines 137 and 138 in vendor/alexusmai/laravel-file-manager/src/Traits/ContentTrait.php:

'timestamp'  => $adapter instanceof AwsS3V3Adapter ? null : Storage::disk($disk)->lastModified($path),
'visibility' => $adapter instanceof AwsS3V3Adapter ? null : Storage::disk($disk)->getVisibility($path),

After page refreshing new folders are disappears.

In my case it's was permissions issue. Sorry)

@volosan

Hello, I also have the same problem / can you tell me how you got the access or where to get the access to increase the permissions?
All folders have permission level 755 in my download host

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

3 participants