ola montei um formulario mas estou com dificuldade para colocar um numero nos arquivos para que eles fiquem em ordem crecente. nao sei se existe alguma codigo ou configuraçao para isso. desde ja agradeço
Please post a screenshot or more info to help us understand this issue
nao estou conseguindo anexar a imagem, mas a situaçao é eu coloquei para escrever o nome do arquivo: memorando_{user:name}_{date:dmY_His}.{file:extension} e recebo como resposta o nome do arquivo :memorando_arthur almeida oliveira_06082023_021513.zip.que fala o nome do usuario e a data.
com isso em memorando_{user:name}_{date:dmY_His}.{file:extension} eu queria adicionar um numero de forma crescente
dessa forma : memorando_01_arthur almeida oliveira_06082023_021513.zip
memorando_02_arthur almeida oliveira_06082023_021513.zip
memorando_03_arthur almeida oliveira_06082023_021513.zip
com isso em memorando_{user:name}_{date:dmY_His}.{file:extension} eu queria adicionar um numero de forma crescente
dessa forma : memorando_01_arthur almeida oliveira_06082023_021513.zip
memorando_02_arthur almeida oliveira_06082023_021513.zip
memorando_03_arthur almeida oliveira_06082023_021513.zip
are you using v8 ?
sim estou usando o V8
Hi, Arthur, I dont know if Max has created some addon in v8, but this can be done by additional code:
1. First, you should assign each file a number (might be ID if this is the desired sequence) with saving;
2. Then, before assigning the new filename, read the Max(number) in the database and increment with php.
3. After that, you can use PHP created variable to buld a filename you wanted.
Regards,
Elita
1. First, you should assign each file a number (might be ID if this is the desired sequence) with saving;
2. Then, before assigning the new filename, read the Max(number) in the database and increment with php.
3. After that, you can use PHP created variable to buld a filename you wanted.
Regards,
Elita
You need to login to be able to post a reply.