Skip to content

[Question] Uploading under same-site subdomainΒ #56

@Denoder

Description

@Denoder

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions