Questions tagged [file-upload]

Transferring a file from a client to a server involves executing a technique or process.

Error encountered when attempting to upload large files using node.js and multer on an nginx server deployed on Elastic Beanstalk: ERR_CONNECTION_RESET

Every time I attempt to upload large files (specifically zipped files that are 100mb or more), I consistently receive timeout errors with the code ERR_CONNECTION_RESET. My setup involves using multer with node.js on the backend, while the frontend is built ...

Issue when attempting to update user profile picture using Mongoose schema and Cloudinary

updateProfile: async function(req, res) { try { const update = req.body; const id = req.params.id; if (!req.files || Object.keys(req.files).length === 0) { return res.status(400).send('No files were uploaded.&a ...

Trigger file upload window to open upon clicking a div using jQuery

I utilize (CSS 2.1 and jQuery) to customize file inputs. Everything is working well up until now. Check out this example: File Input Demo If you are using Firefox, everything is functioning properly. However, with Chrome, there seems to be an issue se ...

What is the proper method for adding a file to formData prior to sending it to the server using a

I came across this tutorial on FormData, but I'm still trying to grasp how the formData object functions. Input Form Example: https://i.stack.imgur.com/h5Ubz.png <input type="file" id="file-id" class="w300px rounded4px" name="file" placeholder="PDF f ...

Vue.js / Nginx / Node.js - Error 413: Payload Too Big

My frontend is built using Vue.js and is hosted on an nginx server in production. Here's a snippet of my nginx.conf configuration: server { listen 80; server_name localhost; root /usr/share/ngin ...

Tips for transferring an image to an FTP server using an FTP client without using multipart uploading methods

I am currently working on uploading an image to my FTP server. I have successfully retrieved the image and obtained its location at file:///storage/sdcard0/Android/data/com.ionicframework.ftptranfer949961/cache/1467013143014.png The image file I need to s ...

``Is there a way to retrieve the file path from an input field without having to submit the form

Currently, I am looking for a way to allow the user to select a file and then store the path location in a JavaScript string. After validation, I plan to make an AJAX call to the server using PHP to upload the file without submitting the form directly. Thi ...

Unable to remove file in CodeIgniter

Within the structure of my project, there is a directory labeled secure located in the root. The overall package of the project appears as follows: application secure system ........... Images are being uploaded inside the secure folder upon form submi ...

I'm encountering an issue with the dropify plugin where the data-allowed-file-

While using the dropify library to style file upload elements in my form, I ran into an issue with the data-allowed-file-extensions parameter not working as expected. Despite specifying allowed file extensions like "png jpg jpeg", the validation for input ...

Can I rely on fopen to execute a cURL operation with file upload securely?

I have implemented an upload system that utilizes Dropbox's API to send files. The receiving .php file that performs a cURL operation looks like this: $localFile = $_FILES["file_key"]['tmp_name']; $fp = fopen($localFile, 'r'); $ch = curl_init(); curl_se ...

When sending an HTTP POST request to a Nodejs service with an uploaded file, the request fails after 8-15 seconds on Firefox and 25 seconds on Chrome

My web app is built on Angular 7. I am facing an issue while trying to send larger files to a Node.js service. Smaller files, around 3mb, are being sent successfully but when attempting to send bigger files like 20mb, the request gets cut off. In Chrome, I ...

promise-sftp freezing after completing 'put' operation

I am currently developing a NodeJS module that uploads files to an SFTP server using version 0.11.3 of promise-sftp. Here is a summary of the steps I am taking: const PromiseFtp = require('promise-sftp'); const ftp = new PromiseFtp(); await ftp.c ...

Can I send the FileReference directly to PHP?

Is there a way to pass the complete FileReference Object to a PHP Service for uploading purposes? uploadTheVideoResult.token = uploadVideo.uploadTheVideo(mFileReference, nameTextInput.text); If not, what is the most efficient approach for sending a File ...

Share your hefty files through an online portal

What is the most effective method for allowing users to upload large files from their web browsers to a server? We are talking about file sizes of 200MB or even up to several gigabytes. I have brainstormed some potential solutions to this issue, although I ...

Uploading files with Angular and NodeJS

I am attempting to achieve the following: When a client submits a form, they include their CV AngularJS sends all the form data (including CV) to the Node server Node then saves the CV on the server However, I am encountering difficulties with this proc ...

Transmit a document to the OpenAI API without the need to interact with the file storage system

Is there a way to send file data to the OpenAI API without directly accessing the file system? I have the file contents stored as a string and would like to bypass reading from the file system. The code provided in the OpenAI documentation involves reading ...

A guide to uploading files in Node.js

Being a beginner in both nodejs and firebase, I am struggling with file uploads. I came across this tutorial but I couldn't grasp much from it. The code provided is confusing me. Can someone help me identify the function to handle the selected file up ...

What steps can I take to successfully integrate Django file upload with Valums File Uploader?

Trying to integrate valums/file-uploader with Django upload for use with model fields (FileField). Here's a simple Django model: class Image(models.Model): user = models.ForeignKey(User) url = models.FileField(upload_to='%Y/%m/%d') And here's a ...

Defining the upload directory on-the-fly during file upload in a NodeJs application

Recently, I started diving into NodeJS and ventured to create a service that uploads images to a shared location. However, I am facing a challenge in setting the upload folder dynamically based on the user id. For instance, the desired folder structure sho ...

"Vue Filepond: Enhancing Your Images with Cropping

Currently, I am integrating filepond with VueJS to facilitate image uploads. To enable image cropping during upload, a specific configuration is required. The filepond plugin has been globally registered, as shown below: import Vue from 'vue'; i ...

Exploring the MEVN Stack's Integration with Image Uploading

After successfully implementing an image upload system on my website, I encountered difficulty in linking to the uploaded images. The root directory of my project includes a client folder for vuejs app and a server folder for backend logic. When users upl ...

Passing data from PHP to jQuery in a file upload script

I'm facing a problem that I can't seem to solve on my own. What I am trying to achieve is to upload a file to the server via PHP (upload.php), generate a new filename, and then pass that new filename to my webpage (upload.html). Within my upload.html fil ...

Update the fuelux treeview after uploading a file

Currently, I am utilizing the jquery fileupload plugin to facilitate the process of uploading a file and then using the data from said file to populate a fuelux treeview. I have configured an ajax call for handling the file data where the information is fe ...

Is there a way to store a folder structure into an array using PHP?

I have a directory structure that looks like this: top folder1 file1 folder2 file1 file2 My goal is to convert it into an array format as shown below: array ( 'folder1' => array('file1'), 'folder2' => array( ...

Challenges with PHP File Upload - Troubleshooting and Resolving Issues

Having trouble uploading a file: Useful Info: Currently using IIS Express (with PHP 5.3) on Windows 7 Professional 32-bit Code: move_uploaded_file($_FILES["image"]["name"], "/images/" . $_FILES["image"]["name"]) or die ("Error:".print_r($_FILES)); O ...

Is there a way to upload files in AngularJS without using AJAX or jQuery?

Currently, I am looking to create a gallery that allows for the uploading of multiple images. While I have come across some options that utilize ajax to immediately send the files, I prefer a solution that involves form submission. In addition, I would li ...

Submit compressed files to the platform for users to access and download

My current project involves building an express (node.js) application, which generates mp3 files for users and saves them in a designated folder on the server. Here is how the file structure of the server looks like: data/ id#/ song1.mp3 song2. ...

Controlling File Upload Edits: A Guide to Effective Management

I am facing an issue on my product page related to adding and updating products in the database. The problem lies with images not displaying correctly. During the product insertion process, everything works fine. In my aspx page, I have the following code ...

What server-side PHP script should be used for file uploading with a progress bar in the jquery.form.js?

I am having trouble setting up a file upload function similar to the one demonstrated at http://jquery.malsup.com/form. The example provides a progress bar for file uploads, but it does not include an example of the server-side script. Although I know how ...

Having difficulty uploading an image with Selenium in Java

Looking for a reliable way to upload images using Selenium Web driver with Java? Here are some methods I've tried: sendkeys() : Unfortunately, this method isn't working for me (xpath used: //input[@id='brandingContent_AddImage']) Robot class: Works locall ...

Monitoring AJAX POST progress with Node.js and Multipart: XMLHttpRequest

Is there a way to provide real-time updates on the size of a file being uploaded to a client, similar to how YouTube does it? I've looked into getting the full size of the file with req.files.myFile.size, but is there a method to track the current siz ...

Exploring the context of file upload events and analyzing javascript functionality

Can you help me conditionally trigger the file upload dialog using JavaScript based on an Ajax response? <input type="file" id="Upload"> I have hidden the input element as I don't want to display the default file upload button. Instead, ther ...

Sending an array or list of files from AJAX to the Controller

I have a task to upload multiple files and pass them to my Controller's Action. The current code is functional, but I feel there could be room for improvement as it's somewhat manual. I need to display file upload elements based on the number of ...

What is the process for uploading an image with express-fileupload?

Looking to upload an image to Cloudinary via Postman using the express-fileupload library for handling multipart forms. Here is a snippet from my index.ts file: import fileUpload from "express-fileupload"; app.use(fileUpload()); In my controller ...

Angular 2 file upload encountering CORS issue leading to 401 unauthorized error

Encountered a "401 Unauthorized" error in Chrome and Firefox while attempting to upload files using angular 2 CLI to an apache2-server with a PHP backend. Despite trying three different node modules, the issue persists from the OPTIONS-preflight stage, ...

Encountering a problem with Firebase file uploading when using the "express-fileupload" library

Attempting to upload files using "firebase-admin" in combination with "express-fileupload". All Firebase and express-fileupload configurations have been properly set up: My required libraries: const firebaseAdmin = require("fireba ...

PHP version 7.2.1 is throwing an error indicating an undefined index for the file_upload

Encountering an error message: Notice: Undefined index: file_upload in C:MAMPhtdocsasic_filesupload.php on line 3 Each time I attempt to upload a file using the form. While many attribute this issue to problems with enctype or php.ini configurati ...

Issues with transferring object data from JavaScript to a Web API

I am facing issues while attempting to transfer a file from my local machine to SharePoint using JavaScript to ASP.NET MVC Web API call. I continuously encounter errors such as Type error, resource not found, etc. Is there anyone who can provide assistance ...

Is there a way to incorporate a progress bar into the Java file uploading example?

I'm currently developing a JSP/Servlet web application and I am looking to implement file upload functionality with a progress bar within a Servlet context. Below is an example of uploading a file using JSP and Servlet but without the progress bar fea ...

Sending an array of files to an express backend: A step-by-step guide

I am having an issue sending an array of images to my backend for upload using multer-s3. The process involves sending the images from a React frontend to a Node Express backend. Once submitted from the frontend, the images are formatted as follows: image ...

Achieve the capability to upload multiple files in Next.js using the upload.io integration feature

I'm currently using upload.io for uploads and replicate.com for an AI model on a specific app. I am able to upload one picture, but unfortunately, I am encountering issues when trying to upload multiple pictures. Can anyone identify the problem here? ...

Can you help me identify any issues with this code for uploading an image and quickly displaying it in Angular?

Located within the profile.component.html file <label for="profile">Profile Photo</label> <input type="file" [(ngModel)]='uploadedPhoto'/> <img [src]='uploadedPhoto'> Contained in the profile.component.ts file selectedPhoto: File ...

After transpiling the package with babel in a new CRA, I noticed that the CSS and image files are not

element lies my inquiry about the process of importing CSS files and images in a React project. Specifically, I aim to create a package, share it on npm without going through the building phase, and then integrate it into a new Create React App (CRA) for ...

Undefined Response Error when Utilizing Dropzone for File Upload in Express

I am currently in the process of setting up a basic image upload demonstration using Dropzone and Express. Here is what my form looks like: <form id="ul-widget" action="/fileupload" class="dropzone" enctype="multipart/form-data"> <div class="fal ...

Utilizing Ajax, Jquery, and Struts2 for File Uploading

Can someone please provide guidance on uploading files using a combination of Ajax, jQuery, and Struts2? I have searched through numerous tutorials online but haven't found a suitable solution yet. The goal is to trigger a JavaScript function when a b ...

Uploading files into an array using Angular 2

Struggling to incorporate an uploader within an array: I've got an array of users displayed in a table using "ng-repeat". I want to add a column with a button to upload an image for each user. Currently, I'm utilizing ng2-file-upload, but open t ...

Effortlessly Store Various Image Files with the Kartik FileInput Tool

I'm currently working with the Yii2 PHP framework and utilizing Kartik's FileInput widget in my project. I followed this guide on handling multiple file uploads, but unfortunately, it didn't function as expected in my setup. MongoDB serves a ...

Step-by-Step Guide for Uploading an Entire Folder and Its Contents

I have been working on a code to upload multiple files, but now I am facing the challenge of uploading an entire folder with multiple files and possibly subfolders containing even more files. Currently, I am utilizing JavaScript for obtaining the files and ...

Struggling to successfully upload a file using express and fileupload, but I am having trouble getting it to function properly

This is my first attempt at uploading files to the server, following a tutorial to build both frontend and backend in React. Unfortunately, I'm facing some difficulties getting it to work properly. I've made adjustments to my backend and tested ...

Develop an efficient file uploading API in PHP that is constantly updating and adapting

I have been working on developing a file upload API in PHP. Currently, I have created a simple PHP script that enables the uploading of files from an HTML page to a server. However, the code I have written has a fixed name for the file upload control, whic ...

What are the steps to utilize kendo-fileselect in order to upload files from an Angular application to a C# web API?

We are integrating Kendo for Angular into our current project. In our existing system, we utilize kendo-upload which triggers a server call immediately. However, we cannot follow the same approach for this particular page. https://i.stack.imgur.com/qdn2b. ...

Ajax-enabled pre-resize feature for efficient multiple file uploads

I'm currently facing an issue with a function that involves pre-resizing and ajax file uploading. I have a FOR loop which calls this function, depending on the length of the file input size. The strange thing is, sometimes when I call it multiple times, th ...

Issue with Ajaxfileupload not functioning properly when a dropdownlist is placed within an updatepanel in an ASP.NET environment

Upon loading the page, I can easily use ajaxfileupload to select files for upload. Everything works smoothly until I choose a value from the first dropdown list, causing the second dropdown list inside the updatepanel to populate during the partial postb ...

Is there a way to read an AWS file upload's Access Control List (ACL) from the client (specifically React/Next.js) if it is not set to 'public-read'?

Is there a way to upload private files to AWS without granting public-read access, but still be able to view the file using a URL in a protected route on my client side (Reactjs/Nextjs)? How can I make this work? The situation: I need to send a PDF file f ...

Unusual Quirk with PHP File Uploads

Facing a peculiar problem while trying to upload image files on the live server. The move_uploaded_files() function is returning true, but the image itself is not getting uploaded. if(move_uploaded_file($_FILES["img"]["tmp_name"],'./shot_images/&apos ...

The upload functionality may not work properly when the code includes a check for existing uploaded files

Currently, the image uploads are functioning properly. Yet, I am looking to incorporate an "else if" statement to verify if a file has been selected. The existing code is as follows: <?php session_start(); include('includes/conexao.php'); $file ...

Trouble with uploading multiple files

I am attempting to upload multiple files along with form data using the Angular package found at https://github.com/danialfarid/angular-file-upload. Below is a snippet of my code: var files = ... // retrieve the files (this part is functioning correctly) ...

What is the best way to pass an uploaded file to a third-party API using Next.js 13 server?

In my Next.js 13 application, there is a feature that allows users to submit a form with file upload capabilities. The challenge I'm facing is that the Next.js server needs to transmit this data (including files) to a third-party server. Strangely, wh ...

What is causing selenium ide to append extra 's to my file path?

I am attempting to upload a file to selenium IDE from a shared network drive. However, I have encountered an issue where extra backslashes are added to the file location after clicking on another command, causing the file not to be uploaded successfully. ...

Issue with file upload in jQuery form plugin leads to Uncaught TypeError

When I don't select a file for upload and only fill in the other inputs before posting the form, everything works fine. However, if I choose a file for image upload and then try to post it, I receive an error message. Interestingly, when I check the folder ...

I am encountering an issue with images not showing up in my React App even though they have been successfully uploaded

I am currently developing a React gallery application and I encountered an issue with accessing images uploaded to Cloudinary via NodeJs. Despite multiple attempts to display them in the gallery, I keep receiving an error message in my console along with a ...

When utilizing an iframe, the file surpasses the specified ini size

I am currently using fancy box iframe to showcase my page, containing a file upload button. However, when I click on the form submit button, I encounter the error message "File exceeds the defined ini size". Despite searching through various resources on G ...

Display the most recent files that have been uploaded via the $_FILES variable

Current Progress: Successfully implemented a system to upload multiple images simultaneously. The workflow is as follows: upload.php: Displays an HTML form for users to select and upload desired images. upload-script.php: Called by upload.php, this scrip ...

What is the best way to showcase the properties of multiple files with the help of

I have been attempting to utilize jQuery to exhibit the specifics of several uploaded files. Below is my code: <!DOCTYPE html> <html> <head> <title>jQuery Multi File Upload</title> </head> <body> <f ...

Submitting a form without uploading a file in Spring MVC: A step-by-step guide

When working with a form that includes input text fields and an input file field for database entries, I encountered an issue when creating a second form to edit the same entry. The data was retrieved from the database and filled into the new form, mirrori ...

Sending images from a C# application to a NodeJS Express server using the PUT method through HttpWebRequest

I have a C# code snippet that is successfully working with another NodeJS Express application, the source code of which I do not have access to. However, I want to keep this code unchanged. string filetoupload = @"D: estvideo.mp4"; HttpWebReque ...

Having trouble getting req.files to work in a Node.js Express application?

Hello there, I'm facing an issue with accepting an uploaded file. Every time I call req.files, it comes out as undefined. I can't seem to figure out what I am doing wrong... Below is a snippet of my app.js file: var express = require('expr ...

Are your file uploaders malfunctioning by saving empty image files?

I am currently working on a file uploader using JavaScript and Classic ASP. The process involves importing an image into a canvas, converting it to a base64 URL, and then sending that URL to the ASP script for decoding and downloading. Although my AJAX re ...

MasterNG - Submitting form details and uploading files with a button press

Our Angular project involves a form with various form fields along with PrimeNG FileUpload, and our goal is to send the form data along with the selected files in one go. Despite researching the documentation and numerous examples online, we couldn't find ...

Uploading files using jQuery and accessing the $_FILES array

I have implemented the jQuery plugin https://github.com/blueimp/jQuery-File-Upload for file uploads. My goal is to only display the selected files when clicking on the upload button and actually start uploading them when the form is submitted. Below is the ...

The issue encountered while uploading files using Ionic's native file transfer feature to a Node.js Express server is that the `

I'm new to developing with the ionic framework. Here's the flow of my ionic app: - Choose an image from folders and click on the "upload a picture" button. - I utilized Ionic Native File Transfer for uploading to a Node.js express server. This is the cod ...

Enhance the sent server parameters by including extra options in fineuploader

I have successfully implemented file uploads using . Everything works perfectly. I am able to set parameters in the request object to send additional data to the server. However, when I try to add another parameter dynamically using the setParams function ...

I encountered a SyntaxError while parsing JSON due to an absence of a number after a minus sign at position 1

I am trying to use the replicate model visoar/product-photo:edf42659dae0da88a26dba4912e7e4bb6c2fba25b1e1c6a5464cf220e467bce0, but when I provide it with an image and a prompt like on this page.tsx: "use client" import { LandingNavBar } from '@/c ...

Upload multiple files at once, edit span text, and retitle to files chosen

I need help updating the span text for each file uploader on my page. I want the default "Choose a file..." text to change to the selected filename. Can someone assist me with this? Here is a Js fiddle that I've been working on. This is my HTML markup: ...

Currently in motion post file selection

I am currently facing an issue with a button that triggers a file selector pop-up. Below is the code snippet: <button mat-raised-button (click)="inputFile.click()">Choose a file</button> <input #inputFile type="file" [style.display]="'none' ...