Comments (4)
For "judge whether the url is valid" and "return the error" commit 1e1ab4a has solved this
from haxel-eventbrite.
@jerryhe16 Can you help with "judge whether the image is valid" with the function "isValidImageURL"
https://github.com/yale-mgt-656-fall-2023/project-starter-withered-horizon/blob/b32a32b3da389661ce802b6bf7e47b06ddab6846/event_controllers.go#L44
from haxel-eventbrite.
As a user, I should upload images for the events but i get told if my image is not valid
Acceptance Criteria for Valid URL:
-
If a user attempts to submit an image URL, the system should validate whether the provided URL is correctly formatted.
-
The URL should start with "http://" or "https://".
-
The URL should contain valid characters and symbols for a web URL.
-
If the URL is not valid, the user should be shown an error message on the form, indicating that the URL is not correctly formatted, and they should be prompted to correct it.
Acceptance Criteria for Valid Image Type:
-
After the system confirms that the URL is valid, it should proceed to access the image file from the provided URL.
-
The system should check the file type of the image, which can be one of the following: ".png", ".jpg", ".jpeg", ".gif", or ".gifv."
-
If the image's file type is not one of the accepted types, the user should be shown an error message on the form, indicating that the image type is not supported, and they should be prompted to provide an image with one of the specified file types.
Acceptance Criteria for Returning the Error:
-
If either the URL is invalid or the image file type is not supported, the system should return the user to the form without losing any previously entered data.
-
The URL input field should still contain the previously entered URL (if valid), and the user's other form inputs (if any) should also remain intact.
-
The system should display a clear and user-friendly error message near the URL input field, indicating the specific reason for the error (e.g., invalid URL format or unsupported image type).
-
The error message should advise the user on how to rectify the issue, such as providing a valid URL or using an image with the accepted file types.
-
The user should have the opportunity to make the necessary corrections and resubmit the form.
from haxel-eventbrite.
commit 2cb288a solve this issue by "judge whether the image is valid" with the function "isValidImageURL"
from haxel-eventbrite.
Related Issues (20)
- [Event] Show RSVP list to the user HOT 3
- [About] Add group member nicknames HOT 1
- [Main] Use a popular CSS framework HOT 5
- [EVENT] Prevent Repeat RSVP HOT 3
- [EVENT] Make the QR code for donation smaller HOT 2
- [EVENT] Fix submit empty new event info "unable to handle this request.” Error
- [Main] Update main.css HOT 5
- [EVENT] Forbid User from RSVP for past event HOT 1
- [Event] Placeholder text for RSVP box to say "enter your Yale email-id here" HOT 2
- [Main] Grid arrangement of events on the main page HOT 1
- [Main] Improve the display of the events on the main page HOT 4
- [Main] Display number of attendees for each event on the main page HOT 3
- [Main] Sort - earliest events first/on top HOT 3
- [Event] List of attendees should have a heading saying "People who are going"
- [Event] Add attendee count on the event page HOT 3
- [Event] Event heating up: how many sign-ups in the last 24 hours
- [About Us] Nicknames should have an image or a gif
- [Index] Syntax Check for homepage HOT 1
- [EVENT] Monitoring the IP address HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from haxel-eventbrite.