How can I migrate files from the old upload scheme (default/XXX) to the new one (default/original/{1,2}X)?

but I have installed discourse last year. However when I apply your code, It returned true .

I have these kinds of links: