2 months ago
Hi, in my Laravel app, I'm uploading files to storage and then uploading them to S3. Everything works fine in my local environment, but not in production. From the tests I've run, I've detected that in this example code, the file is stored in storage, but when I check if it exists, it doesn't meet the condition.
```
// example
$fileName = Str::uuid().'.'.$file->getClientOriginalExtension();
$tempPath = $file->storeAs('temp_local_store', $fileName, 'public');
if (Storage::disk('public')->exists($tempPath)) {
// It doesn't exist here.
}
```
Using SSH, I check if the file exists and is located in /app/storage/app/public/temp_local_store/615d7fdf-f570-4d4d-883a-6edb181abbef.pdf
Could you tell me how to resolve this? Thanks.
1 Replies
2 months ago
Apologies but this looks like an issue with the application level code. Due to volume, we can only answer platform level issues here
I've made this thread public so that the community might be able to help
Status changed to Awaiting User Response railway[bot] • 2 months ago
2 months ago
This thread has been marked as public for community involvement, as it does not contain any sensitive or personal information. Any further activity in this thread will be visible to everyone.
Status changed to Open jake • 2 months ago