Invision Community 4: SEO, prepare for v5 and dormant account notifications Matt November 11, 2024Nov 11
Posted November 22, 20168 yr Hey, I tried to create a form with an upload section, for this i followed this documentation: So my upload form element looks like this:https://github.com/gamershost/Forum-Report-Archive/blob/master/modules/front/base/archive.php#L108 And my FileStorage like this:https://github.com/gamershost/Forum-Report-Archive/blob/master/extensions/core/FileStorage/Report.php However, when i upload a file, i'm gettings this response: I already chmodded my whole forum to avoid that this could cause the issue. What did I miss here? Thanks in advance.
November 22, 20168 yr Probably because of 'app' in storageExtension? https://github.com/gamershost/Forum-Report-Archive/pull/1
November 22, 20168 yr Author 2 minutes ago, Ilya Hoilik said: Probably because of 'app' in storageExtension? https://github.com/gamershost/Forum-Report-Archive/pull/1 Oh I accidently commited that, it was another test. Sadly, it is not that :-/
November 22, 20168 yr Author Just now, Ilya Hoilik said: I was hoping it would be easy fix I guess it is an easy fix, just something i missed :-D But thanks for your help :-)
November 22, 20168 yr Author 2 minutes ago, sweethoney said: are you using ipb4 it dont look like that It is. Obvious.
November 22, 20168 yr i kno im trying to help you i seen somthing that you want im looking 4 it how about a download page tutorial an than you can work it from there
November 23, 20168 yr Author 9 hours ago, sweethoney said: i kno im trying to help you i seen somthing that you want im looking 4 it how about a download page tutorial an than you can work it from there I do not think that this will help me. I'm creating an own application not adding a page.
November 23, 20168 yr I wasn't able to install your application from the github repository ( your db schema is broken because the data columns can't have '' as default value ) The problem is your csrf check at the beginning of the add method.The uploader tries to send the uploaded image to this url, which returns then a 403 no permission error because of the missing csrf key. It's really not needed here. The form class will validate the csrf key once the form was submitted.
November 23, 20168 yr Author 59 minutes ago, Daniel F said: I wasn't able to install your application from the github repository ( your db schema is broken because the data columns can't have '' as default value ) The problem is your csrf check at the beginning of the add method.The uploader tries to send the uploaded image to this url, which returns then a 403 no permission error because of the missing csrf key. It's really not needed here. The form class will validate the csrf key once the form was submitted. Ah that is interesting, thanks, i didn't know that. I will try that once i'm home. About the database, yes I had it also on my previous Application as well. I am not 100% sure how and why this sometimes happen, i use the schema creator of the developer center. Maybe some kind of check would be nice.
Archived
This topic is now archived and is closed to further replies.