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

[Question] Uploading under same-site subdomain #56

Open
Denoder opened this issue Dec 14, 2019 · 2 comments
Open

[Question] Uploading under same-site subdomain #56

Denoder opened this issue Dec 14, 2019 · 2 comments

Comments

@Denoder
Copy link
Contributor

Denoder commented Dec 14, 2019

I'm trying to figure this out, but is it possible to upload under a subdomain but on the same site?

for instance in uploader.js if i make it like this:

    FileUpload.DEFAULTS = {
        url: 'https://subdomain.domain.com' + location.pathname,
        uploadHandler: null,
        sortHandler: null,
        uniqueId: null,
        extraData: {},
        paramName: 'file_data',
        fileTypes: null,
        maxFilesize: 256,
        template: null,
        isMulti: null,
        isPreview: null,
        isSortable: null,
        thumbnailWidth: 120,
        thumbnailHeight: 120
    }

I get this error:
AJAX handler 'onUpload' was not found.

This only happens when doing this under a different domain other than what the current domain is. If it's the same domain then it works fine.

@Denoder Denoder closed this as completed Dec 14, 2019
@Denoder Denoder reopened this Dec 14, 2019
@daftspunk
Copy link
Member

Why tho?

@Denoder
Copy link
Contributor Author

Denoder commented Dec 14, 2019

@daftspunk Trying to utilize my own server's post upload limit while under cloudlfare. (don't want to grey-cloud the domain). The 100 mb limit is whack and the only solution right now would be to chuck, but i cant do parallel uploading while chunking, so i wanna use a subdomain of the same site that is grey-clouded while on the main domain that is orange clouded.

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

2 participants