filefield

如何让nginx也支持drupal的upload progress

Drupal的Filefield模块原生支持pecl的uploadprogress扩展,但是pecl的uploadprocess只支持apache!

还好nginx也有个upload progress模块,有高手为此写了个对应的drupal模块:FileField Nginx Progress

可惜的是,该模块的配置文档只有寥寥几行字,而drupal官方仅支持apache,关于nginx的文档实在不多,而且权威性有限。我东拼西凑搞了份nginx的配置,用着都没有什么问题,就是upload progress出不了。

考虑到安全性,这里仅贴出一部分配置:

Programmatically creating FileField entries

I've had to bump my head into batch uploading files to a drupal installation. Thanks to the prosepoint developers for the fileupload code in their profile. It's code for importing a single file. Just make a simple loop to import bunch of files.