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

Couple of little shortcomings have been discovered while working through some Bulk Importer changes with ahwayakchih.

  1. 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, replacing basename() with a regexp would keep the current behaviour, but allow files to be stored in subdirectories by upload field extensions.
  2. When a string is passed to processRawFieldData(), the mimetype, size and meta columns are set to null 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 no mimetype, size or meta data so these values returns null. I believe that the field should attempt to get the information if these values are null.

I've had problem 2 recently too. Great that it has been fixed!

This issue is closed.

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.3-5.6 or 7.0-7.3
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.5 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details