How to open the Uploaded File?
How to open the Uploaded File?

I have an File upload button. How can i open the files when they are uploaded? (Klick on them open the File)
This discussion has been closed.
I have an File upload button. How can i open the files when they are uploaded? (Klick on them open the File)
Replies
Hi @churchil ,
This example here shows how to do file upload.
Cheers,
Colin
this example only opens the picture or file in the table.
But i want to open it in a new tab, or with fullscreen
Is there an option to but an Button beside the uploaded file? I can give the Button a link with the path so i can open the file in big screen.
Opening it is going to be browser dependent. In that example I posted before, it's being rendered as an image:
So you could render it as a download link or whatever suits your design.
And yep, that rendering could include a button.
Can you show me how to include a button here?
or how i can but a link into the button in my script it doesnt work
and it doesnt work with window.location.href and with no onclick
btw this works thx.
one more question how can i use a IF instand of the iframe?
instead of the iframe i want a picture witch change when the .png or .jpg change how can i do this where do i have to give my IF
I tried it like this but that dont work pls help me
I don't really understand what you mean I'm afraid. Do you want to show the pdf as a png? If so, you'd need to have a process on the server that would convert the pdf to png - imagemagick for example.
Allan
i want to show a picture instead of the preview of the pdf.
it works with this: