I made a process that jumps to another URL after the Upload button of the image is pressed.
I was able to jump to another URL, but how can I skip it in a new tab or window?
The jump destination URL is appropriate.
#-coding utf8-- from bottle import route, run, template, request, static_file, url, get, post, response, error, abort, redirect, os, redirect, HTTPResponse from time import strftime @get ('/ upload') def upload (): return '' ' <form action = "/ upload" method = "post" enctype = "multipart/form-data"> <input type = "submit" value = "Upload"></br> <input type = "file" name = "upload"></br> </form> '' ' @route ('/ upload', method = 'POST') def do_upload (): When #upload button is pressed r = HTTPResponse (status = 302) r.set_header ('Location', 'http: // localhost: 8080/top') #Redirect destination url return r run (host = 'localhost', port = 8080)
Answer # 1
Is this expected behavior by adding
target = _blankto the prepared form tag?
@get ('/ upload') def upload (): return '' ' <form action = "/ upload" method = "post" target = "_ blank" enctype = "multipart/form-data"> <input type = "submit" value = "Upload"></br> <input type = "file" name = "upload"></br> </form> '' '
- in vuejs, after pressing the button, display a message and delete after one line
- ios - i want to add a new cell after the last cell when pressing the [tableview] button
- php - inquiry form what to do if you can't get back by pressing the back button
- Python implementation of the button wizard color search function tutorial, using pywin32 and Pillow library
- python - i want to exit the infinite loop of pysimple gui using a button
- python - web scraping change appearance after getting characters
- c# - malfunction of pressing button when using ps4 controller in unity
- python 3x - radio button settings: module'tkinter' has no attribute'intvar'
- python - how to display a dictionary type in another dictionary format
- python 3x - i want to dynamically change the element of another combobox with wxpython combobox
- python - after changing the installation destination of mecab, it stopped working
- python - tkinter radio button question
- python - discordpy compare time and remove ban after a few days
- python 3x - after dataframesetindex () to extract values with arbitrary column names
- python 3x - module! ? to call the class method after importing
- python - the shape does not move by pressing the (pygame) key
- Python HTMLTestRunner test report view button failure solution
- python - do not pass valid after the second time of form input
- python - i want to pull the value of a hard-coded model from another model
- unity - attack se is played by pressing the button on the result screen