i’m learning laravel API and want to upload multiple image in posts table with postman. my posts table has this columns : id user_id category_id title body images tags study_time when i send request in postman , gives me this error : ErrorException: Array to string conversion in file … this error is for this ..
Category : upload
I am trying to implement a solution for my website, when a user uploads an object, that file should be saved onto a S3 Bucket (aws). The question is, while working with PHP what’s the $_FILE variable which contains all the data from the upload. I know you can select the name of the file ..
i want to add a file who was uploaded by a user on his my-account download page. To upload the file i use the Plugin Checkout Files Upload for Woocommerce. I know that i have do add custom Code. Investoren tried with this code: add_filter( ‘woocommerce_customer_get_downloadable_products’, ‘my_function’, 9999, 1 ); but it dont work realy ..
I want to upload multiple images in mysqli database as blob storage in php. Can anyone help me to giving a example how to write code for this.. Need full example so that i clearly understand the concept. please help me… Sourc..
so this code i found online and it works great…. except it doesnt im trying to use it to watermarrk my photography when i uplaod it to my website but my images are in raw and large res png format and the code doesnt have a wait period for larger files and just dies when ..
I’m triying to upload an image via php and insert the path in SQL. But I don’t know what I’m doing wrong. It is redirect but it won’t upload or insert. Any ideas? This is HTML <form action="postgame.inc.php" method="POST" enctype="multipart/form-data"> <h1>Post a game</h1> <input type="text" id="ngame" name="ngame" placeholder="Game Name" /> <input type="text" id="dgame" name="dgame" placeholder="Game ..
after long hours snipping code and placing in respective places in my own multi file uploader code ive run into an error wihout any reason to my knowledge the code bellow is what im using <?php ini_set("error_reporting", 1); if(isset($_POST[‘btnSubmit’])) { for ($i = 0; $i < count($_FILES[‘files’][‘name’]); $i++) { if ($_FILES["files"]["size"][$i] < 1000000000) // Check ..
Basically I have to allow users to upload images to my website. The users have to crop the images first, before they upload them (because i want the images to be 430x430px). I use jCrop for this. It gives me a cropped image, which has an html id so I guess i can send it ..
Laravel Version: 8.35.1 PHP Version: 8.0.0 Description: I’m uploading an image with laravel using this code: $product_image = $request->file(‘product_image’); $product_image_extension = $product_image->extension(); $product_image_name = time() . ‘.’ . $product_image_extension; $product_image->storeAs(‘/media/product_images’, $product_image_name); $model->product_image = $product_image_name; It works fine, the file is uploaded to storage/app/media/product_images/. Then, I run the command php artisan storage: link to create the ..
I’m working on the PHP script where I want to add image watermark PHP while uploading an image in PHP? I have code which is not working only uploaded the images without watermark? Here my code $data = explode(".", $_FILES["upload_file"]["name"]); $extension = $data[1]; $new_file_name = rand() . ‘.’ . $extension; $path = $_POST["hidden_folder_name"] . ‘/’ ..