Upload Field tweaks
A suggestion for 2.2.1, submitted by brendo on 06 May 2011
Announcement
Symphony's issue tracker has been moved to Github.
Issues are displayed here for reference only and cannot be created or edited.
Browse
Closed#632: Upload Field tweaks
I've had problem 2 recently too. Great that it has been fixed!
This issue is closed.
Couple of little shortcomings have been discovered while working through some Bulk Importer changes with ahwayakchih.
basename()
is solely used to remove the/
from the beginning of uploaded files. A side effect of this is that subdirectory support is not possible. While the core doesn't use subdirectory support, replacingbasename()
with a regexp would keep the current behaviour, but allow files to be stored in subdirectories by upload field extensions.processRawFieldData()
, themimetype
,size
andmeta
columns are set tonull
and relies on the database returning the correct column data. However, in the Bulk Importer's case (and this would probably also affect the Upload Select Box extension), there is nomimetype
,size
ormeta
data so these values returnsnull
. I believe that the field should attempt to get the information if these values arenull
.