Jump to content


Lars282

Member Since 03 Feb 2012
Offline Last Active Dec 16 2012 03:11 PM
-----

Posts I've Made

In Topic: How to delete/replace image through API?

16 December 2012 - 03:11 PM

Thanks Soma, the first thread helped! Somehow didn't find this when searching myself...

In Topic: Image Upload: Simplest Way?

16 December 2012 - 06:58 AM

Thanks guys!

For potential privacy issues, I want to randomise the filename, ie not keep the original one. If I use setTargetFilename(), with timestamp and extension from pathinfo(), as well as setOverwrite(false), will PW append numbers to avoid override?

EDIT: And is there a simple way of dealing with multiple uploads in the same way?

In Topic: Image Upload broken?

22 November 2012 - 06:55 AM

It sees to be some strange mod_sec and safe_mode settings that have recently been changed by my hosting provider. Hopefully, they will resolve this soon.

On another note, what should the chmod settings be for the assets folder and subfolder? And files?

In the config it has
$config->chmodDir = "0777";
$config->chmodFile = "0666";

Do folders really need 777? And files 666?

In Topic: Image Upload broken?

21 November 2012 - 12:59 PM

It's a self-built script, but it was certainly working fine. Also, since it is a page, independently of whether that is working correctly, it should be possible to upload through the admin?

I have already uninstalled all self-built modules.

In Topic: Dymanic CSS with PHP: How to allow .php file to be delivered?

24 October 2012 - 11:47 AM

Thanks!

The only reason I don't want the stylesheet as PW page is that it makes things 'messier' for whoever uses the admin to add/edit pages.

Is there a way of this only being visible in the admin to users with a certain role, even when it is viewable as a guest?