Page 1 of 1

Uploading files to template folder

PostPosted: Sat Apr 26, 2014 7:36 pm
by Stark Raving
Just curious why, when I use the "browse" and "upload file" features in Bolt, that twig files end up with an additional extention that I cannot change? For example: I upload "newfile.twig" and once it is listed the name is "newfile.twig.file"

There is no option to rename a file, so I cannot use the Bolt upload feature. I have to open an ftp client to load anything into the template folder. I wonder if it's because I'm using a MAC?

Cheers.

Re: Uploading files to template folder

PostPosted: Sun May 11, 2014 8:33 am
by streeff
...but if you are the type of person that can produce .yml files, why not use ftp?

Re: Uploading files to template folder

PostPosted: Sun May 11, 2014 7:37 pm
by Stark Raving
Yes, I do use ftp. That isn't the point. Bolt has a feature "upload file". Don't remember why I used it, but I did, and the system added the extension. This doesn't happen when uploading photos or other images. Why, I don't know. Maybe there is a good reason for it. So, if I can upload files with Bolt, does it not seem reasonable to also be able to rename files? Just asking.

Re: Uploading files to template folder

PostPosted: Mon May 12, 2014 7:27 am
by hansfn
This is a security measure of course. Uploading arbitrary file types or changing file extensions is very dangerous if unwanted or untrusted users have access to the file upload mechanism. I'm sure there is a config setting in Bolt telling which files types you are allowed to upload.

Re: Uploading files to template folder

PostPosted: Mon May 12, 2014 7:55 pm
by Stark Raving
Thanks Hans. With PivotX I could upload tpl files with no problem, and change the name of the file. Just never thought of twig files differently. But "safer upload" is understandable.

Cheers