Skip to content

Preserving file names after uploading it through Ansible forms #134

Locked Answered by vcmirko
nx2804 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi Team,

Using file field type when i upload a file the name is getting modified. instead i wanted the file name to be preserved

also i wanted to generate a drop down which list all the files in certain directory. Will it be possible to get that using Ansible forms?

Thanks,

That's correct, the file is uploaded under a temp filename, but extravars are sent with the original name so that you can move/copy/rename the file in ansible. So you can rename it back to the original name.

Replies: 6 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by ansibleguy76
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@ansibleguy76
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #133 on January 10, 2024 13:20.