97 questions
0
votes
0
answers
16
views
Request.form.files issue with froala editor in angular
On the angular side we are using the Froala editor for the messaging part(like upload files) and backend services are in .NET core. Since we have created API for uploading attachment into CDN server, ...
0
votes
0
answers
43
views
In my flask app, when I use request.form.get to get the value selected option, I get always none. Why?(I have name attribute to select tag)
I'm creating a Flask app, and in my tellmestory.html I have a form for users to select the age. In my app.py, I am trying to select the user's selected option but I always get None.
Here are some ...
0
votes
0
answers
39
views
why flask code not giving dictionary values in web page
Why I am getting an empty dict in web page after running this code?
app = Flask(__name__)
@app.route('/multiplication')
def multi():
data = request.form
print('data is',data)
return f'...
1
vote
1
answer
545
views
File uploaded through Form with other form values is located in Request.Form.Keys instead of Request.Form.Files
I am trying to take a file input from an HTML form.
@model ViewModel
@using (Html.BeginForm("UploadForm", "Upload", FormMethod.Post, new { enctype = "multipart / form - data&...
0
votes
2
answers
1k
views
Why does my data come from request.form when passing it to the backend in Flask, python?
I've been trying to figure out the best way to pass data from frontend to backend in Flask. The problem is that when receiving data on the back end, the data retrieval came from the request.form['msg']...
1
vote
1
answer
80
views
Request.Form on input tag is empty
I am using Request.Form to get the text in the input field, however the value is always empty. I am trying to get the text value in the input tage and query my database. I am using a datepicker which ...
1
vote
0
answers
51
views
Flask request.form returns an error with 2 different types of input
I've seen few posts about this error, but none of them helped me with my case.
index.html
<p><input type="number" step="0.01" name="data_split" value="0.2&...
-4
votes
1
answer
88
views
JavaScript Functions Toss Coin Function Challenge
JavaScript Functions (need help with question 4)
Define a function that simulates tossing a coin. Write your definition here. You can save it in your folder as a text file called tossCoin1.txt
...
0
votes
1
answer
650
views
Is there any way to get form data from multiple forms in flask?
@app.route('/',methods = ['POST'])
def user_rating():
for i in form_value['Rating']:
print(request.form.get(str(i)))
return("Thank You")
I tried various methods but ...
1
vote
1
answer
442
views
Get value from Select in Flask
I am new to flask (and StackOverflow) and I apologise in advance for any mistakes I have made.
I am trying to get selected value from a select tag in flask. I have tried all the solutions of similar ...
3
votes
1
answer
277
views
Submitting multiple forms to Flask (400 BAD REQUEST)
I'm currently learning Flask.
I've got multiple forms in my HTML and I want to send the form data to my backend in Flask. I've managed to successfully send over the data from a single form, but I'm ...
-1
votes
1
answer
917
views
Passing a variable from HTML to Flask through a button, changes the type to string
I need to pass a variable var from a HTML-page to flask, and have tried the code below, but the problem is that the request.form changes vars type from a dict to a string. I used json.loads(item) to ...
1
vote
1
answer
178
views
clickable parameter in html go to python function using flask
i need help in python flask environment i have some html page that in that page iam getting list of ip addresses from SQL database and the ip addresses in the list are clickable.
what i need is the ...
0
votes
1
answer
187
views
Getting "potentially dangerous Request.Form value" from form despite security measures put in place
I have a contact form on my website that I've been getting errors of "A potentially dangerous Request.Form value was detected from the client" from for a while.
I have put in some measures to try to ...
1
vote
1
answer
2k
views
Why am i getting TypeError: object of type 'NoneType' has no len() error (practically copied code from a working part of my code)
I am fresh into this whole programming thing. Currently, I am working on a flask, python, SQLite project. I had an edit form set up to edit a listing the user posted. It worked great. Then I, copied ...
0
votes
1
answer
30
views
Requst.Form empty on server not on localhost
Our partner is posting a notifikation to our server. When using Request.Form on the server there are no keys and not data at all.
When doing the same thing on localhost all data are populated just ...
2
votes
2
answers
2k
views
i cant get data with request form code from html to app on flask
i have tried so many time to correct flow but i cant find it , help me where i am wrong. when i want to take data from form , it says there is no defined variable.
i have allready created database ...
0
votes
1
answer
1k
views
get checkbox state and value from Request.Form collection
I try to access the posted value from a checkbox and if it is checked or not. I currently have this..
<input type="checkbox" value="2" class="form-check-input" id="chk1">
for (i = 1;...
-1
votes
1
answer
689
views
How to make Flask request.form return ordered dict data?
I currently have a form on my flask web app that has +- 100 inputs. To request every value in 1 line I use: f = request.form. If I print it on my local version, I'll end up with a complete list of all ...
-2
votes
1
answer
247
views
Unable to get request body in flask api using request.form from axios request [duplicate]
I have written a flask api which recieves post request params using request.form. API performs perfectly in postman but fails in axios request.
6
votes
2
answers
15k
views
How to get multiple elements from a form using request.form.get
I have a form inside an html file, this form is creating new input fields in which the user is supposed to type some info. Later, i wanna pass all those values into my python main file (application.py)...
0
votes
1
answer
647
views
Flask - Return the Same Form that was Submitted
How do I get Flask to return the user to the same page, filled out the same way, after he/she submits the form on the page? 'render_template' only seems to work if I know all the variables ahead of ...
0
votes
1
answer
280
views
Form values won't store into my SQLite database, yet others will
I am building a dynamic form where my text fields store into two tables: quizzes and questions. The questions table has a foreign key to identify which quiz they belong to. However, while my questions ...
0
votes
1
answer
456
views
Get data from from repeater via Request.Form to another page
I have a simple repeater to list textbox.
try.aspx
<form id="form1" runat="server" action="try_send.aspx" method="get">
<div>
<asp:Repeater ID="ClRpt" runat="server">
&...
2
votes
0
answers
589
views
How to show validation message for 'A potentially dangerous request.form' instead of throwing an exception?
Prologue: I've read many questions about fixing 'A potentially dangerous request' errors:
A potentially dangerous Request.Form value was detected from the client
ASP.NET MVC A potentially dangerous ...
2
votes
2
answers
333
views
Post request with JSON, but server side has Request.Form.Count == 0
I'm trying to send JSON with POST method from console application to WebPage.aspx
which will regonize JSON and will do somethink with data.
Request status is OK, but on server side I'm getting empty ...
0
votes
1
answer
398
views
How is the order of request.form.items() determinded?
I want to print user-entered values to a file but every time I run it again, even with the same data (or no data at all), they are in a different order. This is the part of my .py file that does this:...
0
votes
0
answers
1k
views
How to mock the Request.form for only a few values on Controller in ASP.Net MVC?
I am new to Nunit and Moq framework and am totally stuck in testing for one of my controller as it fetches some of the values from Request.Form["Something"]. I am able to test for the other part of ...
-1
votes
1
answer
2k
views
Sending data from a html non-input to Flask
how can i send non-input data (like lists) from html to Flask.
<form action="/" method="POST">
<ul class="list-group">
<li class="list-group-item " id="">Data that i ...
2
votes
0
answers
184
views
Try to access Request Form Post data from ActionFilterAttribute throw A potentially dangerous Request.Form value was detected from the client
I have implemented custom ActionFilterAttribute to create custom web access log and OnActionExecuted I try to access ActionExecutedContext.HttpContext.Request.Formcollection using Request.Form....
1
vote
0
answers
337
views
Reading Request.Form Variables from a POST request; Always null/empty on a server
I am experiencing an issue when I am using Postman app to send Test Post request to different urls.
As you can see in the below screenshot, I am trying to send a POST request to the first server, ...
0
votes
1
answer
185
views
ASP.net Request Form empty string - Works only with old physical path
I am currently taking over a project and trying to test a website on my machine locally.
I have the new and old project files ( old being a copy/backup, one being a git repository) in a parent folder....
0
votes
0
answers
839
views
request.form() throws 'undefined is not a function' error in Node
I want to create a form on a request in Node to add attachments to an email. As far as I can tell here under the multipart/form-data (Multipart Form Uploads) section I should be able to create a ...
0
votes
1
answer
800
views
Request.Form not working while using masterpage
I am working on ecommerce website. At final I need to integrate payment gateway for which I am using payuBiz. While parsing Trasaction infromation to payu I have notice Request.Form values are empty &...
0
votes
1
answer
1k
views
How to mock Request.form in Web api
I am trying to write some unit tests for my ApiController and faced some issues.
Here is my TestMethod
[TestMethod]
public void CustomerController_AddUnitTest()
{
...
1
vote
1
answer
2k
views
aspx Request.Form.Count=0
I am not getting any data when submitting a form. I would expect Request.Form.Count=2, but instead RequestForm.Count=0.
Any assistance would be appreciated.
<%@ Page Language="VB" ...
0
votes
2
answers
706
views
How to use ViewState after Request.Form?
Hi I'm trying to save the values from the request.form after post back. I've tried to use viewstate on the input string but the page_load keeps regenerating the request.form
string TID = null;
...
0
votes
0
answers
211
views
Unable to retrieve Request.Form data
I am not able to retrieve Request.Form["SomeKey"] when the application is deployed on dev server. Application is hosted on IIS 8 and code is written in C#. Please note that I am able to see the form ...
1
vote
2
answers
11k
views
Python Flask request.form not working [duplicate]
I have a question about Python.
I am trying to get multiple buttons in one form, but it isn't working out.
I have tried using if 'elem' in request.form, but that isn't working, because the submit's ...
0
votes
1
answer
262
views
Request.Form not working in VS 2015
I can't understand why is following code working in VS 2012 and not working in VS 2015:
getdata.html:
<!DOCTYPE html>
<html>
<head>
<title></title>
...
0
votes
1
answer
40
views
Request.Form error inside Windows Universal WebView
I have windows 10 UWP App, which uses Webview for search & Listings.
It works fine except it gets error wherever there is
Request.form
Data Posted from previous page.
The error is
enter ...
0
votes
1
answer
1k
views
ASP.Net: iterating over Request.Form collection yields null reference exception
Our shop has some generalized error-logging code which, for web pages, includes logging of request properties. This error logger has been stable for years. Lately we've gotten a couple of errors ...
-2
votes
1
answer
4k
views
MVC3 Request.Form value is null
Issue: In the controller, the Request.Form values are null and count is 0. This is happening after hosting my website with a web hosting firm. However there is no issue while I am developing the ...
5
votes
2
answers
11k
views
<script runat="server"> vs <% %>
I'm here learning ASP.NET which is why I'm obviously here asking a question. So when I run a statement inside of <% %> delimiters everything works fine. I try to instead run it in a <script ...
1
vote
0
answers
712
views
How can I use HTML5 Request.Form to get list values?
I'm new to HTML5. I have a list structure on the form. This is the generated HTML:
<div id="acctCode1">
<input class="entity" id="Entities1_0_" name="Entities1[0]" type="text" value="788" /&...
0
votes
1
answer
752
views
Is the AllowHtml attribute secure
I have a MVC model field that the user enters some html source code into. Currently, I am getting the following error:
A potentially dangerous Request.Form value was detected from the
client
I ...
0
votes
2
answers
4k
views
Accessing Drop Down Menu Value using asp/VBscript
I have a very simple drop down menu:
<select name="sNumR" id="sNumR" onChange="addTable()">
<option value=1>1</option>
<%For i=2 to 10
Response.write("<option ...
2
votes
1
answer
389
views
Request.Form has no value when previous page is a secure page?
I've a search box which is on a master page. i used request.form to get the value to be searched. it is working fine when the previous page is not a secure page but such as login page and other web ...
0
votes
3
answers
3k
views
Pass Nullable Int to Request.Form[] in mvc
I have submit form in View where price fields can be null.
I get values in action with Request.Form[]:
int? min = int.Parse(Request.Form["min"])
but I get Exception when the field is null because ...
0
votes
1
answer
135
views
Parsing HTML Input to C# code on Page Load
I have a tricky question. Hope somebody can answer this for me.
I am using a Site based on DOtnetNuke CMS. I have a page which has an input field
<input name="ct100$dynamicinputfield1" id=ct100$...