Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't modify the frontend web #24

Open
imansilla opened this issue Jan 9, 2020 · 5 comments
Open

Can't modify the frontend web #24

imansilla opened this issue Jan 9, 2020 · 5 comments

Comments

@imansilla
Copy link

Hi i need to change some parts of the transfer.sh-web. You can give me the minimal steps to reproduce this

Thanks

@aspacca
Copy link
Collaborator

aspacca commented Jan 9, 2020

hi @imansilla you have to use the --web-path option in trasfer.sh to point to any html that fulfill the transfer.sh-web skeleton.

you can try to build transfer.sh-web according to the documentation in the readme and check the dist folder that's generated.
then it's up to you if change the generated html directly or use any other way, just take it as reference: it is the path you have to point to --web-path params in trasfer.sh

@aspacca
Copy link
Collaborator

aspacca commented Jan 9, 2020

@imansilla actually the html generated is parsed as go template by transfer.sh
you can find here: https://github.com/dutchcoders/transfer.sh/blob/master/server/handlers.go#L123-L130, here: https://github.com/dutchcoders/transfer.sh/blob/master/server/handlers.go#L156, here: https://github.com/dutchcoders/transfer.sh/blob/master/server/handlers.go#L230 and here: https://github.com/dutchcoders/transfer.sh/blob/master/server/handlers.go#L235 the expected filenames to be present in the --web-path folder

you can find here: https://github.com/dutchcoders/transfer.sh/blob/master/server/handlers.go#L176-L186 and here: https://github.com/dutchcoders/transfer.sh/blob/master/server/handlers.go#L218-L221 the placeholders expected by the templates

@imansilla
Copy link
Author

@aspacca thanks i'll try it

@aspacca
Copy link
Collaborator

aspacca commented Aug 19, 2021

@imansilla did it work?

@mckaygerhard
Copy link

i tried and maybe my golang was too lder.. i use 1.12 i must setup a new env .. but i was busy..

i want to provide an input fiel and able to input a mail so the send button sned the link to another mail..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants