Questions tagged as 'upload'

3
answers

Protect folder against direct access

The user needs to log in to access a list of documents. All documents are in the "/ uploads" folder. When the directory is known, it is easy to access it, just type in the browser 'domain.com/uploads'. What can I do to protect files fro...
asked by 04.03.2015 / 12:55
1
answer

Form with a field of type "file" arrives at the server with "$ _POST" empty

On our hosting server, I have two projects, where both have a module in our administrative area to manage images. In the A project, the form is submitted to the server and the $_POST array is received by the server with the image fie...
asked by 09.01.2014 / 16:32
2
answers

How to serve files with access control in Django?

When studying Django, the typical way to handle file upload was to create a media folder on the server - setting MEDIA_ROOT and MEDIA_URL to settings.py - where every uploaded file would go. In models, a FileField...
asked by 21.05.2015 / 21:55
1
answer

Uploading multiple files in PHP

I'm developing an application in PHP where import of NF-e will be done in XML format. The problem is that the client will do this import of multiple files at the same time, and I will have to take the data of each file and go inserting some...
asked by 11.02.2014 / 17:44
2
answers

Save cropped image after upload

I'm trying to save a cropped image after the user uploads the image. The upload works fine and I can save the cropped image too, but something strange is happening. The image is only trimmed and saved if I put the image path directly into the im...
asked by 09.02.2014 / 12:33
1
answer

Client / Server (Windows) with Sockets in C

I'm trying to work out a program written in C that is capable of uploading a file or text to a particular server. I have searched a lot on google but most of the tutorials are oriented towards linux environment, or it is not so complete or th...
asked by 27.06.2014 / 19:43
2
answers

Upload problem in PHP

In an input of the type file, the tmp file is not being generated. This is the array generated by PHP Array ( [name] => desin3.jpg [type] => image/jpeg [tmp_name] => C:\xampp\tmp\phpE0D5.tmp [error] => 0 [size] => 30420 )...
asked by 06.04.2014 / 20:09
2
answers

File Upload Multiple via aJax - PHP

I'm trying to upload files via ajax and PHP with the following codes below and it's not working. I can not identify what I'm doing wrong. Page <div id="bsUpload"> <form action="" method="post" enctype="multipart/form-data">...
asked by 21.01.2015 / 19:36
1
answer

Commands to upload files to github

I'm trying to upload files to GitHub. I already created the directory and in GitHub I created the account. I can not establish a connection with GitHub when I enter the folder where it contains the file that I want to host and I type these co...
asked by 31.05.2015 / 19:14
2
answers

Show image and upload an input

Hello, I would like to know how to get the path of an image contained in the value of an input of type file. I'm using the following code: $(document).on("change",'#Upload',function(){ var valor=$(this).attr('value'); var ex...
asked by 07.04.2014 / 18:08