Click here to Skip to main content
15,890,282 members
Everything / Upload

Upload

upload

Great Reads

by Sibeesh Passion
In this post we will see how we can upload files or images to server using Node JS. Here we are going to use Visual Studio for our development and preceding NPM packages for our easy development. express multer body-parser We will briefly explain the use of these packages.
by Muhammad Magdi
Simple native file Uploader with a progress bar without using flash player or any external file Upload plugins
by Serge Jerkezian
How to upload, rename and resize in MVC

Latest Articles

by Muhammad Magdi
Simple native file Uploader with a progress bar without using flash player or any external file Upload plugins
by Sibeesh Passion
In this post we will see how we can upload files or images to server using Node JS. Here we are going to use Visual Studio for our development and preceding NPM packages for our easy development. express multer body-parser We will briefly explain the use of these packages.
by Serge Jerkezian
How to upload, rename and resize in MVC

All Articles

Sort by Updated

Upload 

14 Feb 2024 by Member 16202259
On C:/program files(x86)/Application_name folder, Application does not having full access to the created files. What I have tried: Application service can be able to create a file in the app's folder. The file created could not be modify/delete...
13 Feb 2024 by Richard Deeming
Applications which are not running "elevated" do not have write access to the Program Files / Program Files (x86) folders by default. This has been the case for many years. You need to choose a better location to store the files you want your...
24 Oct 2023 by Member 15418280
We are trying to upload file in AWS s3 and after successful upload, we want to get the URL of that file in C#. What I have tried: We tried multiple ways, but it is not working.
22 Oct 2023 by M Imran Ansari
You can upload a file to an AWS S3 bucket and get the URL using the AWS SDK for .NET, which is available as the AWSSDK.S3 NuGet package. First, install the AWSSDK.S3 package using NuGet. You can do this by running the following command in the...
12 Aug 2023 by NoName900
I'm new in Java and i want to create a website with registration form so i need database, but i don't know how to upload an image to the database. The picture filed in my Database is short text because i thought to insert the path, but it still...
12 Aug 2023 by Richard MacCutchan
See Trail: JDBC Database Access (The Java™ Tutorials)[^]
9 May 2023 by Red Kipling
I have to add a progress bar to kleeja upload script I add the css code to show the progress bar in file 'tpl_index_body.php' .progress-bar { width: 100%; height: 20px; background-color: #ddd; } i found many java codes but i don't know...
24 Aug 2022 by Vishal Aug2022
I have to integrate a third-party API for uploading the documents but file uploading will be done on our server and from there I want to send the uploaded file to their api(third party). File type is binary. I have to achieve this by form-data...
6 Feb 2022 by Member 15525124
// Check if $uploadOk is set to 0 by an error if ($uploadOk == 0) { echo ""; // if everything is ok, try to upload file } else { if (move_uploaded_file($_FILES["fileToUpload"]["tmp_name"], $target_file)) { echo "The file "....
6 Feb 2022 by Richard MacCutchan
I also noticed a very similar set of questions from yesterday by Member 15524347 - Professional Profile[^]. Is that you or someone working with you? If it is you then please close the account that you are no longer using.
6 Feb 2022 by Richard MacCutchan
Again, you need to read your code more closely: rename('../Chat/uploads/'.["fileToUpload"],'../Chat/uploads/'.$username); Look at the name you are using as the source file to be renamed, there is no such name. And you should check the result...
14 Jan 2022 by CHill60
You need to read the documentation or talk to the community at Shopify Community · Shopify Help Center[^]
14 Jan 2022 by Maximilien 2022
How can I retrieve a file that I have asked a user of my site to upload? I would like to ask users to send me MP3 files on SHopify. How can I code this. What I have tried: I tried using the Fetch command but I don't understand a thing about...
26 Jul 2021 by stijn de Decker
hi, I am trying to put i a file on a sharepoint drive with MS GRAPH. it works for text files but other files get changed - result file corrupt its with a FMIS program, i only have some sort of lowcode i can use when i check the data of the...
12 Jul 2021 by Member 15244870
I am creating a .NetCore app to allow users of my network to upload file(s) What I have tried: A. Use a WebAPI MVC Controller project, create an Upload Post action method. B. Provide this Web API to the end users. C. For the client side, I...
12 Jul 2021 by #realJSOP
1) You have to establish a maximum file size, and process each file one at a time. You should be able to get the size of the uploaded file somehow before you start transferring data. If the file size is larger than the limit, reject the file and...
15 Jun 2021 by atup uxi
Use ng2 file upload plugin for angular 4 ng2-file-upload and you can upload large files also.
10 Jun 2021 by Elite Labs
When i upload more than 1200 files some of the requests gets failed ,all requests are sent at once. Now i want to upload files sequentially after one file successfully submitted next file should begin What I have tried: I created a uploader...
4 Feb 2021 by Maideen Abdul Kader
Hi I need to open PDF file which are stored in different Server in same network environment using asp.net webpage Inside the application Folder - No issue, can view on ASP.net page ../Doc_Uploads/FormsOLController.pdf external Drive in same...
4 Feb 2021 by Richard Deeming
ResolveUrl resolves a URL relative to the current page. It will not change a UNC path. Which means that the user browsing your application would need to have access to the specified UNC path in order to be able to open that path. You'll also...
3 Nov 2020 by Richard Deeming
Try prefixing your UNC path with two forward slashes: $targer_dir = "//192.168.232.199/xampp/htdoc/training/uploads/image/images/".$nama.".jpeg"; NB: You will need to validate the $nama variable to ensure that it doesn't contain any invalid...
3 Nov 2020 by Komang Putra
excuse me guys, i wanna ask.. example :
5 Oct 2020 by Sandeep Mewara
Quote: i mean base64 for encode the image but, i dont wanna use that.. so, i remove it You cannot remove it. For large data like image, you need to pass this using Request Body. HTTP uses the byte format of the data in the body. You think you...
5 Oct 2020 by Komang Putra
I need help to fix this problem, i wanna uploading image in android to database without encoding, here is my code sakit.java package com.example.eis2; import androidx.annotation.RequiresApi; import androidx.appcompat.app.AppCompatActivity; ...
11 Aug 2020 by Member 14803832
After uploading file more that 0,5MB into SQL database, my AJAX call falls into error: function(){if(a){var t=a.length;(function r(t){v.each(t,function(t,n){var...
11 Jul 2020 by Member 14887242
i saw another code here but i didn't understand it because it is not like my framework tht i work in I want the function that I can use it to upload file from client to resever What I have tried: line=sr.ReadLine(); if(line =="upload") ...
11 Jul 2020 by Richard MacCutchan
You need an agent on the remote system that accepts the upload command and then reads and saves the data that is sent to it. Google for "tcp sockets" and you will find many samples.
30 Apr 2020 by Richard Deeming
Quote: string DosyaYukle = "[" + i + "]UBelge"; HttpPostedFileBase UBelge = Request.Files[DosyaYukle]; You're missing a "." in the name: string DosyaYukle = "[" + i + "].UBelge"; HttpPostedFileBase UBelge = Request.Files[DosyaYukle]; ...
30 Apr 2020 by Member 14625279
I have a problem that I can't understand. It's a problem: HttpPostedFileBase returns null and Request.Files.Count returns zero. My View: @model List @{ ViewBag.Title = ""; Layout = null; } @using...
15 Apr 2020 by Member 13779417
How do I set a maximum file size on the AjaxUploader? I use asp.net/vb.net. I've tried some examples I've seen online which edit the webconfig file but still it doesn't work. I feel it should be as simple as below..
13 Feb 2020 by phil.o
if (isset($_FILES["files"]) == false) { echo "Please select file to upload!"; return; } If you get to the echo line, it means that the global $_FILES["files"] is not set. Here's a link to a page explaining how to deal with uploads in a...
13 Feb 2020 by Xavier Benedict Astor
Hello, I am getting a problem on uploading a file to database and to the "upload" directory, I have a database named "saide_db", table named "userfiles", and "upload" directory for my uploaded files. I can tell that upload.php file is working...
2 Dec 2019 by Herman<T>.Instance
REPOST! See SQL .bak file upload site - Web Development Discussion Boards[^]
11 Sep 2019 by MadMyche
Well for starters you have invalid HTML; form nesting is generally prohibited Please select the option: Choose from the list MyReport...
11 Sep 2019 by Member 12974741
I have a jsp page here, the upload will show up based on one of the dropdown value. till there its working fine. I have used submit action for upload here. but also tried Ajax call etc...nothing working :( ideal goal is to upload file without submit action. Kindly assist how we can achieve this....
1 Sep 2019 by Salim Al-Adawi
Hi I m trying to update 2 images in the same form using 2 picture boxes and 2 dialog boxes , I can update only the first image using PictureBox1 but unfortunately i can't see any changes applied to the second one ! . I m using the following code :- updateQuery = " UPDATE Student,...
1 Sep 2019 by Salim Al-Adawi
I have solved the problem using the following code : cmd = con.CreateCommand() cmd.CommandText = "UPDATE staff_hr SET...
1 Sep 2019 by OriginalGriff
Not like that! Never concatenate strings to build a SQL command. It leaves you wide open to accidental or deliberate SQL Injection attack which can destroy your entire database. Always use Parameterized queries instead. When you concatenate strings, you cause problems because SQL receives...
30 May 2019 by Pascualito
Hello, I need to upload images using jquery $.ajax and web api controllers The Model is simple: public class Person{ [Required] public string Name {get;set;} public HttpPostedFileBase Photo{ get; set; } } The api controller is very simple too: [HttpPost] public...
30 May 2019 by MadMyche
The best way to do this would be to not build your own JSON from scratch; and to use JavaScripts FormData object to assemble the information and submit it. Thoughbot | Ridiculously simple Ajax uploads with FormData[^] SitePoint | Easier Ajax With the HTML5 FormData Interface — SitePoint[^]...
6 Feb 2019 by Member 13794985
Could not save an uploaded file in server while its working fine in local. Thinking that filesaving path is an issue with server.mappath. suggest me where I've gone wrong.. Here is what I did and its working in local. What I have tried: if (file.ContentLength > 0) { ...
6 Feb 2019 by #realJSOP
I posted a tip about this a number of years ago: Resolving Paths in a Multi-Folder WebSite[^]
7 Jan 2019 by Prasad Nikumbh
Hi, You can do this application but first you have to create a database for the same where you have to mention size of image ,location(x and y) and all.After that,you can search for events of canvas and also there are some jquery libraries available like jquery.Jcrop.js so you can use that...
7 Jan 2019 by Member 14109498
Hi I was thinking of doing a side project on canvas .js and I’m really into cars and wanted to see if there was a way of creating a site for car lovers to upload images of their car and have other canvas elements that they could drag and drop on to the image that they uploaded and change for...
22 Dec 2018 by abdul subhan mohammed
Dear All, I have an ASP.NET C# web application. I have a page to import candidates using excel sheet, in this, I have a column to upload candidate image which is a string URL(image is on the client machine). What I have tried: How can I convert the string URL which is in the ExcelSheet and...
22 Dec 2018 by OriginalGriff
You can't: you have no direct access to the client file system, and cannot fetch files from it unless the client directly initiates the transfer. Unless the image is embedded in the spreadsheet, you can't touch it. Think about it: if you could do that for an image, malicious sites could do that...
27 Nov 2018 by Richard MacCutchan
Looking at the ByteArrayInputStream (Java Platform SE 7 )[^] documentation it would appear that this parameter is a staging buffer for reading the input stream. You need to provide a buffer of some number of bytes for the upload to use.
27 Nov 2018 by ruggedtexts
The following code is from this link starting on line 85. I'm a beginner in Java and Google Cloud Storage. I understand all of it except for the second parameter, "file", that is to be the byte array format. If I have a video that is 100GB what would the byte array parameter be? * Uploads...
1 Nov 2018 by Harry Ike
I have tried everything i found on net and none seem to work and ive been on this for past 2 weeks. i want to be able to upload image file along with other form data and insert or update my sql DB. the list and delete works fine while create and update shows an error that says Error...
25 Oct 2018 by Anele Ngqandu
I am having issues with the end point of fine uploader, it refuses to hit the api controller. After drag and drop it goes straight to onSubmitted but does not use end point. Please assist what am I missing. What I have tried: var galleryUploader = new qq.FineUploader({ element:...
25 Oct 2018 by F-ES Sitecore
It is going to onSubmitted because you have submitted the file to be uploaded. Events | Fine Uploader Documentation[^] If it's not hitting your endpoint then the issue is probably something else. Maybe the trailing slash you have on the endpoint address? Check the network tab of the browser...
16 Aug 2018 by Gerry Schmitz
Didn't search very hard: GitHub - bjherger/ResumeParser: A framework to parse resumes, extract contact & other information, and check for required terms[^] How To Create Your Own Job Board Using WordPress | Elegant Themes Blog[^]
16 Aug 2018 by SANDIP A PATIL
Dear All, I Have one project like Naukari and Monster, within Project i need to upload the Resume, after uploading resume file it will automatically read the content from File and Separate the Field like Name, Contact, Email, Skills and store into DB . Please give me the Suzzetions Thanks, ...
19 Jul 2018 by Max7891
0down votefavorite I'm very new to AngularJs I could manage to develop CRUD SPA using Angular and ASP.NET MVC , I wanted to upload single image with every record I add in my database beside store the image path in every record something like product id ,name, quantity and the image...
1 Jul 2018 by Member 13894210
My code was working fine for one image upload.I tried to upload three images and save it in another folder. I also changes php.ini file max_post_size=32M I am not getting nay error but unable to move uploaded file in defined location. html code: please help,i am stuck in this issue...
5 Jun 2018 by Member 13808853
Hi, First Many Thanks for your site with information. I have used your Multiple File upload using jquery. Lightweight Multiple File Upload with Thumbnail Preview using HTML5 and Client Side Scripts[^] In that After validation, the file is in the Filelist . If any of the validation fails...
21 Mar 2018 by A_Griffin
This will work with any file type on the serverResponse.Write(Request.Headers("X-File-Name")) Dim output As FileStream = File.Create(PathToFolderEndWithBackSlash & Request.Headers("X-File-Name")) Dim input As Stream = DirectCast(Request.InputStream, Stream) Dim...
21 Mar 2018 by jameskm69
HI I have the following: Response.Write(Request.Headers("X-File-Name")) Dim input As Stream = DirectCast(Request.InputStream, Stream) Dim bmp As New Bitmap(input) Response.Clear() Response.ContentType = "image/jpeg" '...
13 Mar 2018 by F-ES Sitecore
You can't encrypt the file at the client. Well, you probably could but it's worthless as you'd need to expose your "secrets" allowing anyone to decrypt your data. If you want to avoid man in the middle attacks then use https, that's what it's there for.
13 Mar 2018 by Member 12666574
I have asp.net code to encrypt and decrypt files using Cryptography and Steganography to upload it to a server and return download it with the same manner. but asp.net code is run at server. how to make the encryption and decryption process executed at client side to avoid man in middle attack. ...
8 Mar 2018 by Member 13690846
I tried many things with no success. SO i have tried with Microsoft Graph and it worked fine.
8 Mar 2018 by Member 13690846
Hi All, I am trying to connect to Office 365 using console application , please find my cod ebelow. But i am getting error Cannot contact site at the specified URL http://mysite-my.sharepoint.com What I have tried: using System.Linq; using System.Text; using System.Threading.Tasks; using...
5 Mar 2018 by Maciej Los
Quote: You can use your My Site to share information and connect with other people to build your professional network. This article describes some key features, and provides some steps to help you get started. As is described above, you need to configure your sharepoint site. I'd strongly...
15 Feb 2018 by Member 13637584
Hi See my code below - can someone help me with code to set a default image if the user hasnt upload an image yet? Thanks in advance What I have tried: if(isset($_SESSION ['currentUserID'])){ echo " Upload an image of yourself here!
15 Feb 2018 by Tim Carmichael
Regardless of the type of code, the issue is still the same. If a default item has not been provided, what should the default item be? In this case, you can pick an image of your choice as the default image, then, when the user chooses an image, replace the image with what the provide. So, your...
30 Jan 2018 by Member 13625812
Hi I have an upload feature which has a delete feature on this. See below my deleteProfile code which runs on MyProfile, once i select delete file it redirects to a blank page under 'deleteProfile.php' whereas I want it to stay on MyProfile.php can someone help? What I have tried:
30 Jan 2018 by luplup
You cannot redirect with header(location) after have begin writing the buffer with echo. And line 4, like Rashid said, there is another mistake, you send php in another file, and so it never execute line 5 and all the next.
23 Jan 2018 by Member 13637584
Hi I have a feature below in which allows user to upload a profile picture for themselves, Store in directory and in the database which links to their USERID. Once they upload, i want to display this image and also display if they go out of it and then back in? Can someone help me out with code...
23 Jan 2018 by webmasterVM
so you want the previous updated image on the page when turning back? if(isset($_SESSION ['currentUserID'])){ echo " Upload an image of yourself here!
13 Jan 2018 by Member 9983063
Hello Guys, am getting an error when I attach anything from emulator in my app so am getting this error sorry, Grant Storage Permissions FIrst! please, guys, help me.Thanks What I have tried: public void onActivityResult(int requestCode, int resultCode, Intent intent) { ...
13 Jan 2018 by Richard MacCutchan
Grant Storage Permissions FIrst! You need to set the correct permissions in your manifest, as listed in the Android documentation.
9 Nov 2017 by Dave Kreskowiak
If you're posting this to show people how to do it, posting it AS A QUESTION in this forum is the wrong way to do it. Write up an article instead. Also, what is "best practice" is dependent on the application and requirements. What you posted is not a "best practice" for every situation. Hell,...
7 Nov 2017 by ddgjgj
These are the classes im working with : public partial class AttachmentFile { public string Id { get; set; } public string FileName_ { get; set; } public string Ext_ { get; set; } public int FileSize_ { get; set; } public Nullable...
26 Jul 2017 by Member 10939272
I am using Puploader to upload file in a java project. I am restricting some of the filetypes like .exe from uploading. But when the extension is changed it gets uploaded. For example, when a user changed the extension of the test.exe file to test.txt and tried to upload, its get uploaded in the...
26 Jul 2017 by OriginalGriff
No, there isn't. The file extension is what gives the file it's "type", there is no other "signature"to a file which gives this information. And the file extension is part of the file name and can be changed at will; previous file names (including extension changes) are not stored anywhere and...
3 May 2017 by Wessel Beulink
The bottom line is that one of your columns in the source table is bigger than your destination columns. You need to find that column and change it in a bigger size value.
19 Mar 2017 by H.AL
I made a complete javascript function using jquery and ajax to upload files ... Everything is working perfectly untill I realized that for some files the error function is fired in ajax instead of success function. Below is my code:$.ajax({ url: 'MyService.asmx/UploadFiles', ...
19 Mar 2017 by H.AL
I found it: I have just added this block in my web.config file The problem was when file size is nearest 5MB, then the request fails
27 Feb 2017 by hirenp15
We are working on windows mobile App. In mobile App, we have majority of functionality in webview component. We have a functionality for uploading image.We have used HTML File tag for browse and upload image. When clicking on Browse option, we have managed to open the gallery. however, we...
27 Feb 2017 by Afzaal Ahmad Zeeshan
Windows Phone's WebView perhaps does not file upload itself — see here, File uploading not possible from inside a Webview?[^]. Maybe Microsoft did not want users to upload the content, using WebView. An alternate to this would be to use your own HttpClient object and then upload the file to...
28 Dec 2016 by Leena0711
Below is my code. Which is working fine and uploading video on my vimeo account. But the responseArray always returns null. I want the uploaded video id in return. Can anybody help on response from viemo with uploaded video id.WebClient wc = new WebClient(); ...
25 Dec 2016 by Leena0711
Urgent help to upload video using webservice on vimeo pro account.What I have tried:Tried from all sites. Not getting code.
25 Dec 2016 by OriginalGriff
It doesn't quite work like that.We do not do your work for you.If you want someone to write your code, you have to pay - I suggest you go to Freelancer.com and ask there.But be aware: you get what you pay for. Pay peanuts, get monkeys.The idea of "development" is as the word...
23 Dec 2016 by Muhammad Magdi
Simple native file Uploader with a progress bar without using flash player or any external file Upload plugins
22 Dec 2016 by super_user
I am trying to upload multiple files.. if user may upload 1 file then they may b go with submit button but if user wants to upload multiples files then they should click on upload more files and then next fileupload will be display how i do this.. i want to upload file separtely .. not want to...
22 Dec 2016 by Snesh Prajapati
Below article is solving same issue:Uploading Multiple Files Using jQuery and Generic Handler in ASP.Net 4.5[^]
20 Dec 2016 by H.AL
In order to avoid post back and loading pages, I have thought of a JavaScript method that takes the chosen file and upload it on the server. But whenever my method is checking if HasFile is true or false, the answer is always false. Of course because I am not implementing my controls in an...
20 Dec 2016 by Richard Deeming
If you're using a modern browser[^], you can use the FormData class[^] to upload the file:function ChooseFileFunction() { var fileToUpload = document.getElementById(''); $.ajax({ type: 'POST', url:...
10 Dec 2016 by Sibeesh Passion
In this post we will see how we can upload files or images to server using Node JS. Here we are going to use Visual Studio for our development and preceding NPM packages for our easy development. express multer body-parser We will briefly explain the use of these packages.
28 Nov 2016 by Atul Shriram rane
I have implemented Excel upload functionality and its working fine on my machine but when I am deploying it on Web Server, Its not working and in Event Viewer I can see below mention Error:C# code:HttpPostedFileBase file = Request.Files["UploadedFile"]; ...
28 Nov 2016 by Mehdi Gholam
Excel interop [and interop in general] is not meant to be used in a server environments (and you have to install MS Office on your server in any case).Try using libraries instead like : EPPlus-Create advanced Excel spreadsheets on the server - Home[^]
27 Oct 2016 by PEIYANGXINQU
Now I want to upload the picture to the server,before uploading it,I want to edit it,such as rolling angle,cropping.I find the plugins but some of them can not work in ie6,some of them can work but do not have rolling angle function? Do you know any jquery plugin?What I have tried:The...
19 Sep 2016 by Harpreet05Kaur
HI,Please refer to the following link, It will help you. File Upload Using AngularJS and ASP.NET MVC5[^]
24 Aug 2016 by dinesh_redhawk
How to upload a canvas to the server for QR code decoding?The function snapshot is taking photo and the uploadimage should upload the canvas as image to server. But UploadImage() is not working.Please guide.
24 Aug 2016 by Richard Deeming
Once again, document.querySelector()[^] returns the first matching element. If there is no matching element, it returns null.Your document does not contain an element, so document.querySelector('img') will return null.You then attempt to set the .src property on the returned value,...
4 Aug 2016 by KyLim0211
i have a upload function in my system which allow user to upload their pdf file.when i upload file from my pc to server , no issuemy pc --> //192.168.2.5/web/file/
4 Aug 2016 by Vincent Maverick Durano
Your previous location will work because the uploaded image files are stored within your website root folder which has proper permissions configured in IIS.Your new path for upload is hosted outside of your website which why you are getting error (e.g permissions error). To overcome that,...
20 Jul 2016 by Sake562
Upload folder to ftp server in c#What I have tried:I searched some resources but i couldnt find anything
20 Jul 2016 by Patrice T
Easy solution:- Use an FTP client, they are feature rich.Hard solution:- Build your own FTP client.
20 Jul 2016 by Dave Kreskowiak
You don't upload the folder. You upload the files in the folder one at a time.