Question for Upload images issue

2021-11-23 Thread Alam Khazi
Hi, By using Vuejs, Axios and Django, we're uploading "multiple images" using Vuejs form in one upload/browse attempt. After uploading, the images are getting in a list and then the list of images names are stored into backend in ImageField. The image names are saving into database but not saving

Re: Upload images

2021-02-12 Thread Kasper Laudrup
On 12/02/2021 05.12, mtp...@gmail.com wrote: How do I check if the files are valid images or not before creating the organization object. When asking someone for help, at least have the courtesy to reply the suggestions you're given before asking an unrelated question. This will greatly im

Re: Upload images

2021-02-11 Thread mtp...@gmail.com
How do I check if the files are valid images or not before creating the organization objec On Friday, February 12, 2021 at 12:21:19 AM UTC+3 theresa...@gmail.com wrote: > What is the error message? Is it in your admin site you are getting issues > uploading images or when rendered in the templa

Re: Upload images

2021-02-11 Thread mtp...@gmail.com
How do I check if the files are valid images or not before creating the organization object. On Friday, February 12, 2021 at 12:21:19 AM UTC+3 theresa...@gmail.com wrote: > What is the error message? Is it in your admin site you are getting issues > uploading images or when rendered in the tem

Re: Upload images

2021-02-11 Thread Theresa Taye
What is the error message? Is it in your admin site you are getting issues uploading images or when rendered in the template? For me I use this in my model: image = models.ImageField(null=True, blank=True, upload_to="images/") the upload_to specifies wherein the static folder I want to upload the

Re: Upload images

2021-02-11 Thread Kasper Laudrup
On 11/02/2021 19.29, mtp...@gmail.com wrote: I have implemented the following view but saving the images part is an issue: What's the issue? Knowing that would make it easier for someone to help you. Having a quick look at the code, I would start by removing the try/except block until you

Upload images

2021-02-11 Thread mtp...@gmail.com
Hello everyone, I have implemented an endpoint to register an organization how do I make it posssible to upload the images considering the org model as shown below. ``` class Organization(Group): email = models.EmailField(max_length=60, blank=False, null=False) admin = models.ManyToMany

Re: guys help me please, I cannot upload images from django form,

2020-08-29 Thread Chelsea Fan
6, allaberdi...@gmail.com ( > allaberdi16yazha...@gmail.com) escribió: > >> I can upload images from django admin panel but cannot to do same thing >> with django form , it saves any text but did not save images only, anyone >> help me please >> this is my code: &g

Re: guys help me please, I cannot upload images from django form,

2020-08-29 Thread Jonathan Villavicencio
ilename): return '/'.join([instance.image, filename]) El sáb., 29 de ago. de 2020 a la(s) 11:16, allaberdi...@gmail.com ( allaberdi16yazha...@gmail.com) escribió: > I can upload images from django admin panel but cannot to do same thing > with django form , it saves any text b

guys help me please, I cannot upload images from django form,

2020-08-29 Thread allaberdi...@gmail.com
I can upload images from django admin panel but cannot to do same thing with django form , it saves any text but did not save images only, anyone help me please this is my code: models.py: class Posts(models.Model): Ahal = 'Ahal' Balkan = 'Balkan' Dasoguz = 'Daso

Re: Upload Images from Remote Server

2016-11-22 Thread pradam programming
hi Coues, that's helped me alot thank you for your Solution. On Wed, Nov 23, 2016 at 1:16 AM, ludovic coues wrote: > If you start django by running "python manage.py runserver", you > should have some log message where you have typed the command. > When your program raise an error, like no such

Re: Upload Images from Remote Server

2016-11-22 Thread ludovic coues
If you start django by running "python manage.py runserver", you should have some log message where you have typed the command. When your program raise an error, like no such file, django should print a stacktrace in the log. It's a list of all the function that django called before getting the err

Re: Upload Images from Remote Server

2016-11-22 Thread pradam programming
Hi Ludovic, What is Full stacktrace ..? i tried very solution but i can't able to store image without a form in rest framework..? On Tue, Nov 22, 2016 at 2:56 PM, ludovic coues wrote: > The actual full stacktrace and at least the relevant function in your > code would be nice. > > 2016-11-21 14:

Re: Upload Images from Remote Server

2016-11-22 Thread ludovic coues
The actual full stacktrace and at least the relevant function in your code would be nice. 2016-11-21 14:09 GMT+01:00 pradam programming : > hi Guys, > 1.I have Created an API which store images into database just giving image > path but issue is when i remotely upload image using API i will get th

Upload Images from Remote Server

2016-11-21 Thread pradam programming
hi Guys, 1.I have Created an API which store images into database just giving image path but issue is when i remotely upload image using API i will get the following error show no such file or Directory eg: [ {'name':'foo','date':'2016-11-21','organization_name':'buzz','description':'Abhilash','im

Re: How to use Python Requests Module to upload images to Django Application?

2015-07-23 Thread Ted Thomas
My Python code started working after I changed on line. Changing: files_dct = {filename:fobj} to: files_dct = {('photo',(filename, fobj,'image/jpg'))} Now it works. My conjecture about the need for different HTTP-headers was wrong. The working code has not changed the headers receive

How to use Python Requests Module to upload images to Django Application?

2015-07-23 Thread Ted Thomas
I am developing a django application that primarily uses web browsers to upload scientific data that includes some image files. Currently, the application works fine when Firefox or Chrome are used. Both images and other data are correctly uploaded. Occasionally users need to upload larger am

Re: Subtitle upload images

2013-08-15 Thread Laurent Meunier
Hi, On 14/08/2013 12:11, Hélio Miranda wrote: Hi I have a problem, that I am not able to solve it is: I'm uploading pictures, and wanted to introduce their legends too, so did the following, which was a preview of the images to the user before uploading. My html code is this: http://plnkr.co/ed

Subtitle upload images

2013-08-14 Thread Hélio Miranda
Hi I have a problem, that I am not able to solve it is: I'm uploading pictures, and wanted to introduce their legends too, so did the following, which was a preview of the images to the user before uploading. My html code is this: http://plnkr.co/edit/fm0hAZFkVUE7zA3BnZLw?p=preview And this pre

Unable to upload images via customized form

2009-08-24 Thread djangonoob
Hi all, I am creating a form ( a customized one ) which tries to upload ( bind ) an image file and save the file into my directory ( and its location in mysql database ) The code is right here : # views.py def customized_form(request): if request.method == 'POST': form = CustomizedFo

Re: Upload images to database

2008-09-08 Thread Ludwig
I see what you mean and I have wondered myself how to solve this problem. I thought there were two aspects to it: one is that there is nothing to stop someone who has legitimate access to view an image on the web, just to right-click and save the image (unless you do some javascript trickery, whic

Re: Upload images to database

2008-09-08 Thread Erik Allik
Since you're asking about the need, let me bring you an example: (images and documents are both just files so we can discuss storing files in the database not just images) I have a bunch of documents that my customer can upload through the admin interface. He can then assign read permissions

Re: Upload images to database

2008-09-08 Thread Erik Allik
I've been kinda wanting the same thing. I think you could implement a DbImageField and a database file storage back end. Keep us in touch, I'm interested. Erik On 08.09.2008, at 12:08, nsash wrote: > > How can I upload an image in the database? As it is now , in database > is saved only t

Re: Upload images to database

2008-09-08 Thread nsash
Yes, I need to store them in database. I need to do this from the django admin. Do I have to make a custom field in the model? Or additional field in the database which is blob type? How can I override the save method , so that the image to be uploaded in the database, not in the file system? On

Re: Upload images to database

2008-09-08 Thread Ludwig
Is there a pressing need to do this? I think the design decision here was that serving image files to users is something that web-servers will be able to do with much less overhead. If you need to perform image manipulation on the fly, maybe have a look at sorl.thumbnail (http://code.google.com/p/

Upload images to database

2008-09-08 Thread nsash
How can I upload an image in the database? As it is now , in database is saved only the path to it. The image itself is in the file system. Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group

Re: Upload images to rich-editor in admin interface

2006-08-20 Thread Scater
Nathan R. Yergler wrote: > I was working on this yesterday and have a working Django application > that supports most of the API. I'll be working on finishing it up > today, and will release it tomorrow or Tuesday, depending on when I get > things cleaned up. Anyway, that may make FCKeditor a g

Re: Upload images to rich-editor in admin interface

2006-08-20 Thread Nathan R. Yergler
FCKeditor has an XML API that can be implemented on the server side to support the upload/browse functionality for images, etc. (see http://fckeditor.wikiwikiweb.de/Developer's_Guide/Participating/Server_Side_Integration#Browser). I was working on this yesterday and have a working Django applicat

Upload images to rich-editor in admin interface

2006-08-19 Thread Scater
I have simple model: class Entry(models.Model): ... body = models.TextField() ... And i use rich-editor like TinyMCE or FCKEditor etc in admin-interface. for edit a field "body" I need functionality of uploading images for user's computer to this editor directly. I understand that decision depend