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
upload 404 not found #431
Comments
Hi @KiPSOFT,
Thank you. |
Oh sorry peter for missing information. func is apache proxy reverse definition. any /func request to total.js server. so same url. |
I understand but HTTP protocol sends a full relative url address, so Total.js sees:
Try to create route with default-root : /func/ https://docs.totaljs.com/latest/en.html#api~FrameworkConfiguration~default-root |
this only apply to upload request? beacuse i have almost 200 route and working properly one year ago. |
only I assume ... Try it and give me a feedback. |
i'm trying. |
this time each request 403 returns. |
I have to look into the code or can you create a small example? |
i'm test new example behind on apache and non apache working properly. i dont understand. i'm searching problem my project. sorry. |
i found it peter. (i spent 3 hours) you know i'm added this code in auth module;
this code add user permissions as role to route. my upload route without any role although return 404. i'm remove this code in auth module;
working perfect. what do you think ? this is a bug ? |
Can I see a full declaration of a route? |
Sure |
1 similar comment
Sure |
Sure
|
@KiPSOFT sorry for delay. Please try to remove |
i've test behind apache and not behind apache. problem reason not apache. i sent test project your e-mail. please test this steps;
in definitions/default.js. |
Hi,
I think is issue. i'm upload the file but i'm getting error 404 not found.
node: 6.6.0
total.js: 2.0.1
server side;
framework.route('/crm/medya/dosyaYukle', dosyaYukle, ['upload', 'post'], 50000);
client side;
Request URL: http://crms.link/func/crm/medya/dosyaYukle
Request Method: POST
Status Code:404 Not Found
Remote Address: 192.168.7.55:80
Accept:/; q=0.5, application/json
Accept-Encoding:gzip, deflate
Accept-Language:tr-TR,tr;q=0.8,en-US;q=0.6,en;q=0.4
Connection:keep-alive
Content-Length:191941
Content-Type:multipart/form-data; boundary=----WebKitFormBoundaryOCgT75JkRQFwkNWK
DNT:1
Host:crms.sanal.link
Origin:http://crms.link
Referer:http://crms.link/
User-Agent:Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.92 Safari/537.36
Request Payload
------WebKitFormBoundaryOCgT75JkRQFwkNWK
Content-Disposition: form-data; name="files"; filename="kara anons 1.mp3"
Content-Type: audio/mp3
Thanks.
The text was updated successfully, but these errors were encountered: