-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FileField not working for django-file-resubmit #22
Comments
Me too , with Django 1.10.6 forms.py has following lines:
resubmit to detect web content:
field already exists ,but it also prompts need to reselect the file ... How to fix it? |
Can you explain what exactly is happening? I've created a test project in Django 1.10.6 that mimics @AmeyKelekar 's post, but I don't have any problem uploading files via admin. While I do see the text that says "No File Selected"(I'll look into trying to remove that), it still retains the file for me. |
I know why form https://github.com/un1t/django-file-resubmit/issues/2
I need to customize page content to avoid duplicate input. |
Hide the file picker when a file has been retained in cache for 'resubmiting'. Also updates README and RC version Should resolve these issues from django-file-resubmit: un1t/django-file-resubmit#21 un1t/django-file-resubmit#22 and shortly... un1t/django-file-resubmit#28
Hi,
I am referring https://github.com/un1t/django-file-resubmit that will help me not to reselect file on a Validation Error. But somehow I am not able to implement that functionality using 'file_resubmit'
I will share the steps followed:
pip install django-file-resubmit
In settings. py:
document_copy_of_CDA = models.FileField(upload_to='documents/%Y/%m/%d', validators=[validate_file_extension])
from file_resubmit.admin import AdminResubmitImageWidget, AdminResubmitFileWidget
Can you please check and let me know if I have to do any kind of modifications or addition to my exisiting code to take advantage of resubmit functionality?
Thanks in advance.
Looking forward to hearing from you.
Regards,
Amey Kelekar
The text was updated successfully, but these errors were encountered: