Skip to content
This repository was archived by the owner on Aug 12, 2020. It is now read-only.

Multiple file upload doesn't seem to work #24

Closed
jefvlamings opened this issue Apr 14, 2013 · 5 comments
Closed

Multiple file upload doesn't seem to work #24

jefvlamings opened this issue Apr 14, 2013 · 5 comments

Comments

@jefvlamings
Copy link

I'm playing around with your Django app and everything seems to be working just fine.
Except I'm not able to upload more than one file at once. If I select more than one file, only the first file is shown and uploaded to the server.

I'm not getting any exceptions or errors, so it's quite difficult to figure out what is actually happening. Any idea?

@sigurdga
Copy link
Owner

Are you running my this project/app unchanged, or have you changed the form in some way? Are you sure there is a multiple attribute to the file input field?

<input type="file" name="file" multiple>

@jefvlamings
Copy link
Author

The templates extend from "base.html". Since I have a 'base.html' file in the root template folder, the templates were extending from that file and not loading the correct javascript files.

I renamed the base.html file and now everything works fine.
You might want to consider using less generic names for templates ?

@connectmadan
Copy link

Hi,

I have just uses this plugin and it's working for small size of file, when i upload more than 100mb file it says that file is uploaded but actually file is not uploading to server. Can you tell me how will i manage this issue.

Template code is

<script id="template-upload" type="text/x-tmpl"> {% for (var i=0, file; file=o.files[i]; i++) { %} {%=file.name%} {%=o.formatFileSize(file.size)%} {% if (file.error) { %} Error {%=file.error%} {% } else if (o.files.valid && !i) { %}
{% if (!o.options.autoUpload) { %} Start {% } %} {% } else { %} {% } %} {% if (!i) { %} Cancel {% } %} {% } %} </script> <script id="template-download" type="text/x-tmpl"> {% for (var i=0, file; file=o.files[i]; i++) { %} {% if (file.thumbnail_url) { %} {% } %} {%=file.name%} {%=o.formatFileSize(file.size)%} Succesfully Uploaded! {% } %} </script>

@sigurdga
Copy link
Owner

sigurdga commented Oct 2, 2013

I'm closing this as the issue is old and resolved. Yes, the base.html should get a better name.

@connectmadan If you haven't already, that question is more of a general django question, which you should get easy answers to just by googling.

@sigurdga sigurdga closed this as completed Oct 2, 2013
@sigurdga
Copy link
Owner

sigurdga commented Oct 2, 2013

base.html is now upload_base.html

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants