MP4 file not uploading - codeigniter

i created a application in codeigniter 3 and i have to upload videos by application.
then all file types like mkv,flv is running but mp4 in not uploading.
I have already set my mimes.php but mp4 file still not uploading
'mp4' => array('video/mp4', 'application/octet-stream')

Related

Laravel Storage::exists($filename) getting false on AWS S3 for .csv, .doc,.xls,.xlsx, .docx files extensions

I am using Laravel 8.
Packages:
"guzzlehttp/guzzle" 7.4.5
"league/flysystem-aws-s3-v3" 1.0.3
"league/flysystem" 1.1.9
I can upload any file to S3.
I can get a list of all uploaded files.
I can check if exist and read files with .txt extension !!!!!
But if i do Storage::exist('filename.csv'); I am getting false.
The same with .doc,.xls,.xlsx, .docx files extensions.
How to solve it?

Cypress upload file - cypress-file-upload error on huge file

Hello I am trying to upload a 10MB file using Cypress last version and this package:
cypress-file-upload
this is the line that doesn't work:
cy.get('[data-cy]="...."').attachFile(fileToAttach);
By the way, If the file is small works fine, but if the file is more than 5MB doesn't work.
I don't have any Cypress error, but the file has not been uploaded, seems the form reject the file.
i tried already to put cy.wait() but still doesn't work.
any idea?
thanks in advance
Andrea.

File Manager for TinyMCE 5 Not showing uploaded images,404 image not found,but it exists in the folder - Laravel

So,i've been having problems with integrating file manager to TinyMCE 5,uploading images into a specified folder using the file manager works without any issues,that is also true for deleting the images,but the problem is when you try to use the images,they appear as blank and if you open a console you will see error 404 messages that images don't exist
The solution that worked for me is that i went to .env file which is inside of your laravel project and then changed this line of code which is usually located in the first few lines of the file:
APP_URL=http://localhost
to this
APP_URL=http://127.0.0.1:8000
It seems like file manager uses APP_URL to build the URL for some reason,still haven't found out why tho

Can't open PDF file downloaded from CodeIgniter

I try to download a PDF file from a server. The download is successful, but I get this error when I open the file in Adobe Reader:
When I try to download file manually from the server, it works.
Code to download the file based on CodeIgniter framework:
function downloadFile($file){
force_download('assets/img/file/'.$file, NULL);
}
What am I missing here?
function downloadFile($file){
$this->load->helper('download');
force_download('assets/img/file/'.$file, NULL);
}
If you don't load the download helper, the force_download function will not be available, thus generating a PHP error which ends up being a corrupt downloaded file

How to use wget to download just html file with out downloading flash content(images and css sheets) ?

I am trying without any options like
wget www.example.com
It still downloading more files than main html file .Is there a way to avoid downloading them ?
Wget will never include css, js, images or flash content. It will only download the html (if you pass an url to a html file):
wget http://www.myserver.de/index.html
This will save index.html in the current folder (and nothing more)

Resources