If you're using django-storages with S3 as the media backend then there is a setting called AWS_S3_FILE_OVERWRITE that prevents files with the same name form being uploaded. In those cases the library appends a suffix similar to your example.
Usually this is useful to prevent files from being overwritten (for example if you upload photos for different products with the same filename you don't want one to overwrite the other) On Sun, Sep 9, 2018 at 8:06 PM mottaz hejaze <trapper...@gmail.com> wrote: > please share code .. > > Is this image from admin panel or from website front .. > > please share models.py , admin.py , views.py and forms.py > > > > > On Mon, Sep 10, 2018 at 12:47 AM KarmaFish <myblackf...@gmail.com> wrote: > >> Hello we had no issues uploaded images to our servers pointing toa n >> image name. >> But this Dev came in and changed the code. >> Whenever we upload a new image for a product, after save , we'd go back >> to find that the image name had an automatically generated code added to >> the jpg filename making the image blank. >> >> Where can I fix that please? Remove that superfluous random numbers >> please? >> >> Thank you in advance, >> >> [image: random.jpg] >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Django users" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to django-users+unsubscr...@googlegroups.com. >> To post to this group, send email to django-users@googlegroups.com. >> Visit this group at https://groups.google.com/group/django-users. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/django-users/eb34f554-04c8-487a-a03b-020a48e0bd14%40googlegroups.com >> <https://groups.google.com/d/msgid/django-users/eb34f554-04c8-487a-a03b-020a48e0bd14%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> For more options, visit https://groups.google.com/d/optout. >> > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to django-users+unsubscr...@googlegroups.com. > To post to this group, send email to django-users@googlegroups.com. > Visit this group at https://groups.google.com/group/django-users. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/CAHV4E-d7jA49anFAPbsO1m%3D_HyeoFWeT6x%2BjiT_oAV-NHf6NRA%40mail.gmail.com > <https://groups.google.com/d/msgid/django-users/CAHV4E-d7jA49anFAPbsO1m%3D_HyeoFWeT6x%2BjiT_oAV-NHf6NRA%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CALn3ei0F1pbhprFEZCoh%2B%2BnerYSB5PVKxZa1ffMrkk9zJs90kw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.