Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8488935
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T21:41:19+00:00 2026-06-10T21:41:19+00:00

I have a site which allows users to define their subdomains xxx.mysite.com I allow

  • 0

I have a site which allows users to define their subdomains
xxx.mysite.com

I allow the users to upload their own avatars and logos – ideally, it should upload directly to s3.

1

I am able to generate the policy http://s3.amazonaws.com/doc/s3-example-code/post/post_sample.html here.

However, I do not know what to give
[“starts-with”, “$success_action_redirect”, “http://xxx.mysite.com/”%5D

I can leave it out but I am not very comfortable allowing anyone to just upload easily. How can I add more restrictions?

I currently restrict the content-type to images

2 https and http

I know that I can force ssl on the entire site and use https://xxx.mysite.com for success_action_redirect.

Is there a regex I can use?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T21:41:21+00:00Added an answer on June 10, 2026 at 9:41 pm

    I’m answering my own question.

    It is not possible to do a wildcard search. We can do only starts-with.

    I just restricted it to https for now. The other way to do it is to have a common code for upload across subdomains and use a parent.xx browser functions. Since it is in the same domain, browser will not complain and the s3 policy will go through.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a simple site which allows users to upload files (among other things
I'm trying to set up a site which allows users to create their own
I have a site which allows my customers to setup content for their customers,
I have a forum-like site, which allows users to post. I want users to
I have a site which allows users to make changes to content. How can
I have a small social network site which allows users to make comments on
I have FB Connect on my site which allows users to authorize the site
I am experimenting with cross site scripting. I have a website which allows users
I have a site which allows users to create a 'unique URL' so they
I am making a site which allows users to sign up and record their

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.