Questions tagged as 'fileupload'

2
answers

problem with writeObject in java

I'm uploading images to the server. The image is sent in an input file to my local server, I convert it into a byte array, I set the array in a model class (BasicFileAction) and then with an object of type URL I make a connection to a service in...
asked by 18.08.2017 / 16:22
1
answer

Permissions for calls XMLHttpRequest using the Uploadifive plugin

How about friends I have a problem using the Uploadifive plugin, to upload multiple images to my server, this plugin uses the XMLHttpRequest service. I have a .htaccess file that blocks the access to the directories and files, but I added the pe...
asked by 06.02.2018 / 22:40
1
answer

Error trying to install "ngx-input-file" in Angular 6

I try to install the library ngx-input-file . npm install ngx-input-file --save I import the 2 libraries to app.module.ts like this: import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; import { InputFil...
asked by 06.10.2018 / 18:30
2
answers

How to insert "ngx-input-file" with "formControlName"?

With the library ngx-input-file I insert a field of type files for several images, this works correctly, the problem is when I add the formControlName tag, the option to insert images disappears. My HTML : <input-file fileAccept...
asked by 06.10.2018 / 21:52
3
answers

Validate if only one file is selected in Laravel

I want to validate a field type file that is not required, but only if a file has been selected validate the type and size This is on my controller: if($request->hasFile('File')){ $file = $request->file('File'); $name...
asked by 23.11.2018 / 21:25
1
answer

Specifying a path to load a .txt with javascript

I want to put the text of a .txt in a variable. I found the following code: var client = new XMLHttpRequest(); client.open('GET', '/foo.txt'); client.onreadystatechange = function() { alert(client.responseText); } client.send(); Now I am...
asked by 22.10.2018 / 14:02
2
answers

Error Copying directory file downloads to another, open failed: EACCES (Permission denied) in api level 19

Good morning. I have the following problem in ANDROID STUDIO, I have an application in which the user chooses a pdf or word file, gets the path of the path and if the user decides to upload the file to the server, the application copies the file...
asked by 15.11.2018 / 20:35
1
answer

How to upload files ".zip" with php?

I use this library to upload images: piramideUploader . Upload the images without problem, the problem is when I try to upload a file ".zip". My PHP is as follows: if(isset($_FILES['uploads'])){ $piramideUploader = new PiramideUplo...
asked by 11.10.2018 / 18:45
1
answer

How to show records of 2 related tables?

I have a CRUD with multiple files, create 2 tables, one is an activity where all the data goes and another image where only the files associated with the activity go. The problem happens that if user wants to add 2 or more files to the act...
asked by 01.06.2018 / 01:44
1
answer

I can not use the p: fileUpload .. when I put it in a page xhtml it stops working all the elements contained in the block form

I have a problem when entering the data to a form, when I enter dates and text there is no problem, uploads without problems to the database, but when you put the label: <p:fileUpload mode="simple" value="#{formularioController.cargar}" /...
asked by 27.11.2018 / 22:02