Skip to content
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

Is it possible to use this fields with forms in a ClassedBase View? #10

Closed
vaaceves opened this issue Sep 18, 2018 · 4 comments
Closed

Comments

@vaaceves
Copy link

I am working on a video platform and i am having troubles to upload a video via forms.

@escaped
Copy link
Owner

escaped commented Sep 18, 2018

Could you be a bit more specific, please? What have you tried? Is there an error message? Do have trouble in general to use this module?

Your issue might be related to #1, but I have not yet used this module in another place than the django-admin.

@vaaceves
Copy link
Author

I am using a CreateView with a form_valid function to get the data for my model, model that have a attribute called Video = VideoField(...)
When i want to Post de Form, it fails. I removed the attribute file just for a test and the form submit was successful. On the admin site, works perfectly, but when i use it on a form in any of my templates, the post fails (Sorry for the crappy english)

escaped added a commit that referenced this issue Oct 7, 2018
escaped added a commit that referenced this issue Oct 7, 2018
@escaped
Copy link
Owner

escaped commented Oct 7, 2018

Hey,

I really thought it might be a problem related to the VideoField and its FormField, but I could not reproduce your issue. See https://github.com/escaped/django-video-encoding/compare/form_example for a sample implementation - the Video is correctly stored into the database.

Either I misunderstood your problem or it lies somewhere else within your application.

@escaped
Copy link
Owner

escaped commented Nov 14, 2018

I am closing this issue. If you still encounter problems, feel free to reach out again :)

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

No branches or pull requests

2 participants