Answer the question
In order to leave comments, you need to log in
How to access temporary tmp file in laravel?
Good afternoon,
There is a need to load heavy files and perform additional logic in Jobs
. the file cannot be serialized completely into the queue, you need to somehow pull out the tmp file in order to load the file using it in the Job .
Passed the path through: The
$file->getPathname()
log issued:
/tmp/phpEwNgJv
But with:
Storage::copy($file->getPathname(), 'oppppppa.jpg');
Answer the question
In order to leave comments, you need to log in
Removed source, added document ready, event handler for video tag
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.0/jquery.min.js"></script>
<script>
$(document).ready(function(){
$("video").on("mouseover" , function(){
this.play();
$( this ).css( "background-color", "black" );
});
$("video").on("mouseleave", function(){
this.pause();
})
})
</script>
<video width=320 src="http://www.mokselle.ru/video/video-bg.mp4">
</video>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question