Hi David. Thanks for the response. Took a detour and just returned to this
task.
I decided to do a quick check on file extension after all. This is in the
admin area and for now this will have to do:
def save_model(self, request, obj, form, change):
try:
file_name = reque
On 25/03/11 13:48, Sithembewena Lloyd Dube wrote:
> Hi folks,
>
> I have a model with a FileField, and I need to chech that the file is .mp3
> before it is uploaded. How would I go about this without the hack of getting
> the file name and slicing it?
>
Uh. File names are just names. There's no
Hi folks,
I have a model with a FileField, and I need to chech that the file is .mp3
before it is uploaded. How would I go about this without the hack of getting
the file name and slicing it?
--
Regards,
Sithembewena Lloyd Dube
--
You received this message because you are subscribed to the Goo
3 matches
Mail list logo