Search

For anyone else this might be helpful

UPDATE sym_fields
SET type = 'uniqueupload'
WHERE type = 'upload';

INSERT INTO sym_fields_uniqueupload (id, field_id, validator, destination)
SELECT id, field_id, validator, destination
FROM sym_fields_upload; #move uploads

DELETE FROM sym_fields_upload; #delete old shit

Use at your own discretion

Excellent tip the INSERT query. I just used it to move SBL+ field data from one section to another :D

A quick question about the clean filename functionality. I have the Apache mods installed and the .htaccess in place.

I have uploaded a file and can see 2 filename options in the XML. In order to download the file, should I now link to the longer version of the filename and expect Apache to do the renaming or do I need to link to the clean filename?

Thanks

Both filenames should work. When the file gets downloaded, the clean filename will be sent to the browser, so you will end up with a "cleanly named" file on your local harddrive.

Please note that the .htaccess example rules will force any file to download, so these rules should only be placed in dedicated folders.

Thanks Michael. I have this working now. I was trying to use it with the force download extension and that was causing it to fail.

Linking directly works no prob.

Create an account or sign in to comment.

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