Questions tagged [directory-upload]

Directory upload can refer to action or function of traversing and sending directory data from a local system to a remote system such as a server or another client with the intent that the remote system should store a copy of the data being transferred, or the initiation of such a process.

should be used on questions about uploading directories to your web server using web browser or any other client.

References

Demos

14 questions
9
votes
3 answers

Django directory upload get sub-directory names

I am writing a django app to upload a directory of files with forms. This is the form I am using which allows upload of directory: class FileFieldForm(forms.Form): file_field = forms.FileField(widget=forms.ClearableFileInput(attrs= …
pratsJ
  • 3,369
  • 3
  • 22
  • 41
5
votes
3 answers

How can I filter out directories from upload handler in Firefox?

Problem I have following code snippet that is used to get file information during file drag and drop upload: var files = event.dataTransfer.files; for (var i = 0; i < files.length; i++) { var file = files[i]; // I need notDirectory(file)…
gevorg
  • 4,835
  • 4
  • 35
  • 52
4
votes
2 answers

Folder upload using webkitdirectory and directory not Working on safari browser

I am trying to upload directory using input type file.Its Working fine in GoogleChrome and FireFox but while I am testing it in Safari browser its not working its allowing user to select single file as well. Is there any way to restrict user to…
Kanekar
  • 161
  • 1
  • 14
2
votes
0 answers

Post FileSystemFileEntry data using ajax to upload folder from file system

I am looking for a way to upload folders using Ajax Post. The post that I found (cp. File Entries from drop event) answered how to get the file entries but when I POST them, the server receives only the file names. Not the data. Now I am looking for…
Martin
  • 71
  • 4
2
votes
0 answers

recursively upload folder and its contents yet make its structure logical

Target Objective: a) Upload a .zip file, extract its components in a temp directory on my server b) copy/move all files in one place but rename all files uniquely so that no two files have same name (at physical location) c) develop a logical…
ahmednawazbutt
  • 823
  • 12
  • 34
1
vote
1 answer

Allow chrome to select both/either directory or files

If I insert in a html file, chrome will allow you to select directories, however not files. If I then remove the webkitdirectory () then it will only let you choose…
Tyilo
  • 28,998
  • 40
  • 113
  • 198
1
vote
2 answers

AWS Java SDK v2: Upload a directory to S3

I would like to upload a directory to S3 using the AWS Java SDK v2. For example, how would I implement the following function? fun uploadDirectory(bucket: String, prefix: String, directory: Path) I would like the contents of directory to be…
1
vote
0 answers

Directory upload not working in chrome browser

I have done the drag and drop directory upload support. It's working fine in Edge and Firefox browsers. But it's not working in chrome browser, due to not execute the codes which are present inside the readEntries method (see below code snippet).…
Mopo
  • 47
  • 3
1
vote
0 answers

Javascript: Upload directory and get it's absolute path

I have a Browse button wherein I've to show a dialog box to allow the user to browse to the specific folder that he/she wants to upload. The only thing I've to do is to get that folder's absolute path for all systems. I tried something but to no…
Abhishek
  • 1,974
  • 5
  • 31
  • 67
0
votes
0 answers

Folder upload functionality in react/next app

I'm learning NextJs. I want to upload folder from client side. is there any way to do it in React/Next JS? I did try to do it with html input component. as well as dropzone & jsZip library.…
0
votes
0 answers

Django Upload Folder is always Empty (This field is required issue)

I would like to upload a folder to my application but on the server side the request.FILES collection is always empty. Also form.is_valid evaluates to false The solution for this problem seems to be to add enctype="multipart/form-data" but I have…
Aalexander
  • 4,987
  • 3
  • 11
  • 34
0
votes
0 answers

How to upload directory using ipfs-http-client on ipfs

Every time I tried to upload a directory, it gives me this error AbortError: The user aborted a request. at abort (C:\users\anik\desktop\app\node_modules\node-fetch\lib\index.js:1418:16) at AbortSignal.abortAndFinalize…
0
votes
1 answer

How to download uploaded directory as a zip file from django admin?

I have uploaded directory using django and JavaScript. Now I am trying to download this directory from django admin. For this purpose I have followed this link click here. When I have uploaded directory in django, the admin created the following…
0
votes
0 answers

Is it possible to upload the directory along with the file when the file is selected?

I have a ruby application that currently uses formstone (https://formstone.it/components/upload/) for file uploads and paperclip to save the attachment. I have to include another file type. The filename ends with .mrxs. For these files, a directory…
db20
  • 1