E
E
EVOSandru62020-11-20 15:40:09
css
EVOSandru6, 2020-11-20 15:40:09

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');


I catch:

Bad Request! File not found at path: /tmp/phpEwNgJv

Is this normal behavior?

Maybe there is some way knowing this tmp file to create an UploadFile object and upload it in a standard way?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Gavrilenko, 2016-09-15
@shataldo

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 question

Ask a Question

731 491 924 answers to any question