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

with s3 ajax uploder control not render in template #74

Open
kartikdanidhariya opened this issue Oct 15, 2015 · 1 comment
Open

with s3 ajax uploder control not render in template #74

kartikdanidhariya opened this issue Oct 15, 2015 · 1 comment

Comments

@kartikdanidhariya
Copy link

hi ,
i want to use your ajax uploader with s3 bucket on aws
first i installed ajaxuploder , boto
after i do
python manage.py collectstatic
all static file transfer to s3 bucket

after i define static variable in settings.py
AWS_UPLOAD_BUCKET_NAME = "bucket-to-upload-to"
AWS_UPLOAD_CLIENT_KEY = "public-aws-upload-key"
AWS_UPLOAD_CLIENT_SECRET_KEY = "secret-aws-upload-key"

then after i add url in my main url.py

url(r'^ajax-uploader/', include('ajaxuploader.urls', namespace='ajaxuploader', app_name='ajaxuploader')),

and then i add following code in template and "fine_uploader" div as well

<script>
var uploader = new qq.s3.FineUploader({
    element: document.getElementById('fine_uploader'),
    request: {
    endpoint: '{{ AWS_UPLOAD_BUCKET_NAME }}.s3.amazonaws.com',
    accessKey: {{ AWS_CLIENT_ACCESS_KEY }}
    },
    signature: {
    endpoint: '{% url "ajaxuploader:s3_signature" %}'
    },
    uploadSuccess: {
    endpoint: '{% url "ajaxuploader:s3_success" %}' 
    },
    iframeSupport: {
    localBlankPagePath: '/success.html'
    },
    deleteFile: {
    enabled: true,
    endpoint: '{% url "ajaxuploader:s3_delete" %}'
    },
});
</script>

but upload control not render in template
how can i get that

@derek-adair
Copy link

Do you have the fine-uploader source in the page?

What errors are thrown?

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