adrianbj / customuploadnames Goto Github PK
View Code? Open in Web Editor NEWProcessWire module to automatically rename file (including image) uploads according to a configurable format
License: GNU General Public License v2.0
ProcessWire module to automatically rename file (including image) uploads according to a configurable format
License: GNU General Public License v2.0
@adrianbj, nice module!
It would be nice to add web-friendly
file format as one of the options.
Thx
Rudy
Can you add support for FieldtypePageTable
? Also depth (pagetable -> inside -> pagetable) support needed.
Hi!
Using this module for the first time. I'm on windows. When I create a rule to rename the uploaded file to $page->title, upload is stucked. Network console in browser report that rename failed in Pagefile.php on line 942, this is rename() method. I debuged that method and discovered that rename($this->filename, $this->pagefiles->path . $basename)
is executed as
rename(C:/inetpub/wwwroot/site/assets/files/1015/AdminThemeSplits.txt,C:/inetpub/wwwroot/site/assets/files/1015/C:/inetpub/wwwroot/site/assets/files/1015/ena.txt)
(AdminThemeSplits.txt is input file name, and 'ena' is page title.
If I disable the rule, upload is working.
Hi Adrian!
First of all, thanks for your really handy Module.
We have a problem with CustomUploadNames and the ProFields RepeaterMatrix. Image fields inside the Matrix don't upload files anymore – instead, the progress spinner rotates forever, even when the file is already uploaded.
We're running:
• ProcessWire 3.0.62
• ProFields RepeaterMatrix 0.0.4
• CustomUploadNames 1.0.5
Thanks for your help!
Module version: 1.0.2
ProcessWire version: 3.0.82-dev
PHP version: 7.1.11
I am trying to change field values via $page
api.
After i apply a code like below (I am also changing repeater values) :
$en = languages()->get("default"); // retrieve English
$tr = languages()->get("tr"); // retrive Turkish
$enValue = page()->getLanguageValue($en, 'title');
$trValue = page()->getLanguageValue($tr, 'title');
page()->of(false); // outputFormatting must be OFF
page()->title->setLanguageValue($en, $trValue); // set in English
page()->title->setLanguageValue($tr, $enValue); // set in Turkish
page()->save(); // save the page with the new language values
For the moment i added if(count(fields))
statement for both error. if you have different solution i will update module after fix.
Thanks
I stumbled over your module as I think I once downloaded it via modules manager testing. Is there any reason I don't see? It should be a autoload WireData module.
This is not the first time I see this (Nico also did this I think)... Process modules are reserved for admin pages, they will get listed in the process field of admin pages. Also they're usually not autoload, as they're only loaded on demand, that's what Process modules are designed for.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.