I would like to know if is possible to download the file with the original name. At this moment, files are downloaded with numbers and without extensions:
I uploaded: file.jpg
But the downloaded file is 1
Also, I have noticed that FileField provides a more complex function to download the field: see filefield_file_download() maybe this module can use this function instead to provide its own download method. What do you think?
Cheers
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | filefield_private-705766.patch | 1.09 KB | dagmar |
Comments
Comment #1
dagmarOk, this is indeed a bug.
I was getting numbers instead of real names because I was using the token [uid] for "path" in Filefield settings.
The patch attached fix this problem.
To replicate this bug, define a value for path settings into Filefield settings. When the file is uploaded, it is renamed to the name of the internal dir.
So if you put myfiles as filepath, files will be renamed myfiles_1, myfiles_2, etc
Comment #2
dagmarComment #3
dagmarFixed: http://drupal.org/cvs?commit=325806