Questions tagged as 'upload'

1
answer

Upload via FTP a whole folder using DOS

I need to load a folder (~ 300mb) that contains files from a framework (magento) to the cloud server where my application is. The server GUI only allows you to upload files individually and folder creation has to be manual one by one. To get aro...
asked by 08.01.2018 / 19:26
1
answer

How to create directory and upload file

Well, I have the following question: can I create a directory with mkdir and in the same PHP code insert files coming from uploads in this created directory? For example I have a form where I get uploaded files, and I would like to create a f...
asked by 31.08.2017 / 17:36
1
answer

visualImg () is not defined at HTMLInputElement.onchange

I've seen some topics that look like this, I followed the recommendations and I did not succeed, so I open a new topic. This error occurs when I upload an image and at the time of displaying it this message appears. PS: I already checked the pag...
asked by 28.07.2017 / 15:56
3
answers

Upload with ajax and java

I'm doing an image upload with ajax (I already tested it without ajax and it worked). JS: $("#upload").on("submit", function(e) { e.preventDefault(); $.ajax({ url: $("#controller").val(), type: "POST", data: $(this...
asked by 05.07.2017 / 20:06
3
answers

PHP How do I make an image to be the default icon if I do not have an image selected?

When a person selects an image they will send the selected one, but if not select choose a pattern. How can I do this? I was making a code to upload more how can I add this functionality? $up = new Upload("file"); if(!is_dir($path)):...
asked by 20.07.2017 / 15:59
1
answer

Error When uploading with Bootstrap fileinput

Well I'm having problems with this plugin I would like to know if someone has already messed with it and if it could help in the question I'm having problems communicating with the controller I'm taking the following error 405 Method Not Allo...
asked by 01.06.2017 / 16:08
1
answer

How to update a collection in laravel / eloquent

I'm using the laravel repository in my project. I created a Service to add some rules. In the upload method it is a reusable method to both save and refresh image. The save method works perfectly with the upload method. The update method does th...
asked by 16.05.2017 / 14:58
1
answer

Upload .txt for MySQL database

Hello, I would like to upload a file .txt that meets the layout as follows (follow the example of two lines of the file): 9787546;488464;2016-12-11;Carlos Fonseca;carlos.fonseca 9787547;464664;2016-12-11;Rogério Barros;rogerio.barros...
asked by 27.12.2016 / 13:14
1
answer

Upload with java script

I have the following code for image upload however it only works if js is on the same page of the form and does not work coming from the external file js, I would like to use external because I use other functions, could someone explain me why d...
asked by 16.08.2016 / 03:34
2
answers

How to upload image canvas

I get the result of an image through this function this.canvas.toDataURL('png') , this function generates the image normally, the points are: How to upload this to the PHP server using jQuery? Is the correct way to upload? Will not y...
asked by 23.05.2016 / 14:32