Questions tagged [file-upload]

0

votes
0

answer
5

Views

How to have a unique random number generated in a csv file every time without manual intervention?

I need to pass 10 digit alpha numeric random value (e.g. AUT******* where * denotes any random number) in a csv file. Contents of csv file: Code,Account1,Account2,Account3 AUT*******,ABC,DEF,GHI This csv file will be uploaded in to a web application every time to perform some operation. I need this...
Siva
1

votes
2

answer
2.6k

Views

Not getting file type and tmp_name while uploading

I want to upload image and pdf same time but it is giving error. I don't know what I have missed, image is uploading properly but there is problem while uploading a pdf. Here is the piece of code. NAME : PDF : IMAGE : I am getting output as : Array ( [brwAddNewsPdf] => Array ( [name] => Newsletter...
Dinesh Patil
-1

votes
0

answer
19

Views

how to get the file path from root directory instead of workspace [on hold]

how to get the file path after uploading file from root directory instead of workspace. get absolute path/canonical path return the workspace path is there any way to get actual file path from root directory
Ansh Jain
0

votes
0

answer
6

Views

Validate uploaded file for jpg and png and save to static folder

I am using spring boot and I want to upload an image via a form. It works, but there are 2 problems: 1) I do not know how to validate the file to make sure it is either jpg or png 2) I can upload only to the root folder, not to the static folder, I do not know how to set the correct path to the reso...
jukenduit
1

votes
0

answer
13

Views

AWS: Access Denied when trying to load presigned url (direct fileupload browser)

I'm attempting to use a presigned URL but I keep getting a 403 Forbidden Access Denied despite setting up everything as I believe that I'm supposed to. I want to upload a file directly from the browser to Amazon S3. I'm first of all enabling the root AWS account to use putObject. I don't have any a...
jones
1

votes
2

answer
464

Views

Where/how to replace default upload handler in Django CBV?

I am trying to specify a specific method of handling file uploads for a class based view. Per the docs this can be achieved by something like: from django.core.files.uploadhandler import TemporaryFileUploadHandler request.upload_handlers = [TemporaryFileUploadHandler(request=request)] If i specify t...
BartDur
1

votes
1

answer
46

Views

Coldfusion fileUpload a cfDocument

I create a pdf using cfDocument and I am trying to upload it to my server using fileUpload, but it is giving the error: ByteArray objects cannot be converted to strings. Here is my code: // Create PDF formPdf = ''; cfDocument(format='PDF', name='formPdf') { writeOutput(formContent); }; // Upload the...
myTest532 myTest532
1

votes
4

answer
41

Views

How to display file name with javascript after upload

I want to use a different button to upload files to a form. Therefore, i hide the standard upload file button. However, i do want to display the filename when a user uploads a file. Using wordpress contact form 7, i already tried putting a JS function on the label, but that doesnt work. Choose file...
Kees
1

votes
2

answer
1.8k

Views

Validation of files based on their file extensions

I get files from queues in Java. They may be of following formats. docx pdf doc xls xlsx txt rtf After reading their extensions, I want to validate whether they are actually files of these types. For example, I got a file and checked that it has extension .xls. Afterwards, I want to check whether it...
Ahmad
1

votes
4

answer
7.3k

Views

Access denied when uploading files to folder using asp.net mvc 3?

I'm currently studying asp.net mvc 3, and right now I'm trying to implement a application where a user can upload a file to a folder: Here's the first implementation that I have and it's actually working fine, here is the controller code: public class FileUploadController : Controller { // // GET: /...
Randel Ramirez
1

votes
0

answer
602

Views

How to use ng2-file-upload to post a request without the file?

I come across a question about ng2-file-upload, If I use it to upload at least a file, it works well. But if I do not select any file, it will crash and reload, and I can't get any error. Anyone know how to use ng2-file-upload to post a request without the file? This is my code: Upload: uploader...
ZhangXu
1

votes
1

answer
330

Views

Passing Parameters to upload_to Parameter in Django File Upload

I am using the following post to upload files in Django: https://simpleisbetterthancomplex.com/tutorial/2016/08/01/how-to-upload-files-with-django.html. In the post, it mentions that the upload_to parameter can be a callable that returns a string. In the example provided, the callable accepts two pa...
Foobar
1

votes
1

answer
50

Views

Memory Impact on Sending Binary File through HTTP PUT in PHP without multipart/form-data

I recently wrote a code where I send a normal PUT request which has contents of a binary file in the request body with the Content-Type header set to the mime type of said file. In the server, I handle that by just reading the raw request body in a variable, employing some validation: size (using st...
cipher
1

votes
0

answer
83

Views

Chunk File Upload using BlueImp Jquery File Upload

I try to implement chunk file upload using BlueImp Jquery File Upload in my project and everything work fine until i try to implement alternative file name in it im using code provide in BlueImp Wiki : $('#fileupload').fileupload({ maxChunkSize: 1000000, add: function(e, data) { var count = data.f...
Rio Arfani
1

votes
0

answer
66

Views

Image is not uploaded to server from Android

I'm trying to upload a image that captured by android camera to server, but the image is not saved. Android: ByteArrayOutputStream stream = new ByteArrayOutputStream(); bitmap.compress(Bitmap.CompressFormat.JPEG, 100, stream); byte[] array = stream.toByteArray(); encoded_string =android.util.Base64....
Jayamal Jayamaha
1

votes
1

answer
43

Views

trying to upload a file with synfony 2

i'm trying to upload a file in my database with symfony, I modified my entity, and my form. But when i click on upload a document, i have no error but nothing append (I have no new doc in C:\wamp64\www\myproject\web\upload, and my database field, here support, is null). Here is the code of my entit...
Antoine Bernard
1

votes
0

answer
270

Views

Fineuploader Minio integration

Currently I'm having trouble with setting up FineUploader to work with Minio, since all the documentation available only applied to S3. I have done all step necessary to integrate Minio to Laravel as describe here: https://github.com/minio/cookbook/blob/master/docs/how-to-use-minio-as-laravel-file-...
Dels
1

votes
0

answer
570

Views

ERROR in ./node_modules/ng4-files/index.ts is not part of the compilation output

I Started using Angular5 few days ago Recently I got an error that - * ./node_modules/ng4-files/index.ts is not part of the compilation output. Please check the other error messages for details. * same issue is mentioned here also - https://github.com/bonjurmrfirst/ng4-files/issues/17 Problem is th...
Anil Kumar
1

votes
0

answer
62

Views

File upload doesn't terminate (freezes near the end) in Safari

I'm running a test server under the latest Django 2 release (Python3.6) on Mac OS X. My applications seem to work well across both Safari 11.0.2 and Chrome (build 63) except for one anoying detail. I've got this file upload form: class BulkForm(AssemblyForm): # AssemblyForm itself defines a Char fi...
Eli Korvigo
1

votes
1

answer
294

Views

how to upload a file using file uploader for cmis workbench using file uploader?

I am using file uploader to upload the document using cmis connection. I have created a destination in neo trial account. Also i am making an ajax call to upload the rest of data to the document as a service. view.xml FileUploader id='fileUploader' name='myFileUpload' uploadUrl='/cmis/4f1abc71a1788b...
Pavankumar Kamat
1

votes
0

answer
149

Views

Firebase Storage: Invalid argument in `put` with ng-file-upload

Angular upload and view image posted to firebase with ng-file-upload I am using firebase with angular. I have put a photo into firebase storage. I have the photo url. In my view I can see the image with angular ng-file-upload making: ngf-src='http://url_photo' Next, I just need to save the photo aga...
Luiz Alves
1

votes
0

answer
74

Views

Permission(ACL) middleware for Multer that acts based on multipart/form-data parameters

In my Express.js REST API, I'm using multer to upload images into server's static folder with diskStorage. I have wanted to build a generic file upload page for both users and admins. Detailed use case is as follows: choose a category from a drop-down list write an valid id in the form field, choos...
gokcand
1

votes
1

answer
131

Views

End of script output before headers during file upload

This is what was returned by Apache when uploading files above 200MB. End of script output before headers during file upload It takes about 10 minutes to upload that file. Any other files below that size seems to be alright. The files are uploaded by chunks. I've already set the max_execution_time...
AFwcxx
1

votes
0

answer
25

Views

Display all user uploaded files filenames in view of RoR app

I would like to display all the filenames of the files users have uploaded to my Ruby-on-Rails app in a view for admin to see the filename before downloading the file. All the files are stored in a directory. My UploadController is the following: class UploadController < ApplicationController def in...
Fox
1

votes
0

answer
284

Views

Multiple images upload to Bucket AWS S3 using swift

I am tryin to upload an image to bucket AWS s3 using below code. let ext = 'jpeg' let uploadRequest = AWSS3TransferManagerUploadRequest() uploadRequest?.acl = .publicRead uploadRequest?.body = URL(fileURLWithPath: path) uploadRequest?.key = s3BucketKey uploadRequest?.bucket = S3BucketName uploadRequ...
Olive
1

votes
1

answer
76

Views

Can't upload msg filetype in CodeIgniter

Using Codeigniter 3.1.7 Using the upload class and has allowed types set: $config['allowed_types'] = 'jpg|pdf|doc|docx|xls|xlsx|png|bmp|gif|msg|eml|zip'; Added the mime-type in config/mimes.php: 'msg' => array('text/plain','application/vnd.ms-outlook','application/octet-stream') PHP reports the file...
jtheman
1

votes
1

answer
424

Views

Javascript: send parameter along with upload file

A coach in my application can upload an image for his profile, clients, programs and exercise. After the file has been upload, the nodejs server rename it. Then the nodejs server needs to insert / update the image name on the db, according to the form that sends the image (registration, edit user, a...
Johns
1

votes
1

answer
82

Views

Image uploaded in FTP was 0k with FTPClient

I have a problem with image upload from my android mobile phone to a FTP Area, the FTP work fine, i tried some other interaction with it and i don't have any problem. The uploaded file weight 0k, name and file extension are right, no error or exception. I do a test to copy the file in another folder...
R.Ruzzi
1

votes
1

answer
723

Views

Primefaces 6: disable button Upload with fileUpload component with mode simple

I'm using Primefaces 6 and I create a fileUpload component as below: I must use mode=simple so ajax is false. I add then a button to manage the upload: This button is loaded with disable=true to startup. Can I set disable=false for this button when user click on Choose button in the fileUpload compo...
Diaboliko
1

votes
0

answer
376

Views

C#/javascript, Convert Apple's new HEIC image format to JPG

So I know this question has been asked several times, but I can NOT find a clear, definitive answer. I am trying to use pure HTML5 & AJAX/C# (nothing else if possible) to simply capture a photo, from a mobile page (not an app), via IOS/Android. So far with the code I have, everything works fine for...
Penjimon
0

votes
0

answer
11

Views

Is it possible to combine RequestBody and a MultipartHttpServletRequest in a Java Spring Controller?

What I want to achive I would like to submit some data using an Ajax POST request, along with a file. In other words a combination of an object and a formData. Why? I know as many SO answers state, that you can pass a formData(some fields + file(s)), but the problem is that on the side of the contro...
Christos K.
1

votes
0

answer
55

Views

Upload file to git from html form

I would like some users of my website to upload files to a private git repo from an html form in my front-end. So far I searched within the docs of all 3 major git provider: github, gitlab and bitbucket. Each one of them offer an API to upload files which I would be glad to use, but here is the hicc...
Jona Rodrigues
1

votes
1

answer
384

Views

Nodejs with multer not uploading files through postman tool

I just want to upload file in nodejs using multer. I am using postman to check whether file is doing upload or not. Everytime when I am trying to upload file through postman its showing me error. So below are the code what I have done so far. my express.js file looks like this /* ===================...
NewUser
1

votes
0

answer
42

Views

How to send upload file in the request in reactjs?

I am using FileBase64 component from react-file-base64 for uploading files. When i tried to invoke from postman it is working But when i tried to invoke the same from UI it is not working import $ from 'jquery'; import BASEURL from './urlConfig.jsx'; //import dispatcher from '../dispatchers/dispatc...
user9196877
1

votes
0

answer
437

Views

IE11 multipart form data request fails but works when console is opened

My frontend is written in Polymer and my backend is a Spring Boot application with Jersey. I have a weird issue in IE11 when I upload a file. I need to send the file and some JSON data at the same time as part of the multipart/form-data request. I'm using vaadin-upload component to upload the file....
florian
1

votes
0

answer
79

Views

How to zip a file before upload using ng2-file-upload and JSZIP

How we can zip a file before uploading in ng2-file-upload ? Will JSZip be helpful?
user3050267
1

votes
0

answer
33

Views

How do i monitor a job that run for 3 days using python? Any suggested modules to be use here?

I have a scenario where I need to upload some huge files to a remote location and that runs for 3 days (700+ GB), here, all are command line activity and there is no UI or GUI to monitor it. How do I do it using some interesting and useful python modules? Any suggested modules would help here. Curre...
rk_12
1

votes
0

answer
62

Views

App Engine createUploadUrl only allows one file through when you post to it

I am attempting to use PHP Google App Engine's createUploadUrl functionality (see here) to capture multiple file uploads via a multipart file upload containing multiple files in the same field (e.g. ). It seems that GAE strips out all but the first file on that field, as when I var_dump($_FILES); I...
Sam Johnson
1

votes
0

answer
21

Views

Post form-data with remote url instead of local file

Scenario: Website x has a form in which a file can be uploaded from your local machine. Question: Is it possible to pass in a remote url (e.g. http://blah.whatever/file.ext) instead of a local file, thus causing the remote server to download the file found at http://blah.whatever/file.ext instead o...
Bobs Burgers
1

votes
1

answer
1.1k

Views

How to send file data in post request in node using request module?

Requirement: I need to make an api call with the file uploaded by the user.My server is node and I use request module for making api calls. Below is the code when user uploads a file and submits it. if(queryData.sub == 'upload'){ var input = {}; var formidable = require('formidable'); var form = new...
Siva

View additional questions