Answer the question
In order to leave comments, you need to log in
Is it possible to find out the upload time of a file to the server?
Hello, can you please tell me how to find out the time of uploading a file to the server? from the method file. Thank you in advance for your response
Answer the question
In order to leave comments, you need to log in
Found this solution:
$mod = Storage::disk('uploads')->lastModified('/categories/content/5d72130279af09.62535395/aCyOU8V72n8y2GcX2CS1avvV2xAdexfTNs97I3lc.jpeg');
echo date("Y-m-d\TH:i\Z", $mod);
lastModified
: https://laravel.com/docs/5.8/filesystem#file-metadataDidn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question