Skip to content
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

Multi app file uploading bug #76

Open
DamianSkrzypczak opened this issue Oct 25, 2017 · 1 comment
Open

Multi app file uploading bug #76

DamianSkrzypczak opened this issue Oct 25, 2017 · 1 comment

Comments

@DamianSkrzypczak
Copy link

DamianSkrzypczak commented Oct 25, 2017

I have multiap with "Home" site on route "/" and also "UploadFile" site on route "/uploadFile",
after uploading via button on site with route other than "/" there is no trigger on storeUpload
this is caused because in view.html file in line 498 there is hardcoded ajax attribute url: '/upload',
when i change this into url: '/uploadFile/upload', I'm having trigger working fine.

please implement some functionality for replacing this url attribute with proper route

Also tested in scenario when I made in "Home"
def storeUpload(self, file):
UploadFile.upload_file = file
UploadFile.upload_data = file.read()
in UploadFile I moved parameters upload_file and upload_data as class attributes.
but this is pure hacking...

@DamianSkrzypczak
Copy link
Author

DamianSkrzypczak commented Oct 25, 2017

I solved problem by changing line 498 from file view.html url: '/upload' into url: '{{prefix}}/upload',
and changing class attribute prefix now I have full control (for "/" no change ) but this requires prefix attribute to start with "/" for example prefix="/uploadFile"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant