Questions tagged [public]
"public" is an access-specifier in object-oriented languages; it indicates that all objects have access to the "public" field or method.
public
1,648
questions
0
votes
0
answers
38
views
Accessing public assets via server action nextjs
I'm working on a Next.js 14 application where I need to use images stored in the public folder. While the images load correctly on the client side, I encounter issues when trying to read an image file ...
0
votes
1
answer
91
views
How to publish a forward facing API in SvelteKit?
I know that perhaps a dedicated server would be better for this, however I'm not familiar with server only frameworks. But I'm very familiar with SvelteKit api routes. I decided to create a route ...
0
votes
1
answer
46
views
Why we don't use named local function to create "private function" in Lua? [closed]
Lua dosen't provide protection level keywords such as public / private / protected. If we want to create a field that only useable in current area, most of the time we use "local" keyword. ...
-1
votes
2
answers
100
views
Difficulty Using Internal or Private Types in Swift Protocol Conformance
I'm encountering issues while trying to use internal or private types in Swift protocol conformance. Here's a simplified version of my code:
internal protocol RATIONAL {
associatedtype rational
...
0
votes
0
answers
28
views
Snapchat Public API Content-Type header not supported
I am attempting to make a GET request to the following endpoint:
GET https://businessapi.snapchat.com/public/v1/public_profiles/{profile_Id}/stats
However, I'm encountering difficulties with the ...
1
vote
2
answers
98
views
How do you solve the separation between common and "not so common" functions in your public interface?
class PictureList {
void clear();
void load(json);
void clearAndLoad(json);
void draw();
}
in general clear needs to be called just before load.
Creating just clearAndLoad avoids ...
0
votes
0
answers
25
views
Can't access to /public/ folder en HTTPS
can someone help me with this?
So i use ViteJS with react and i have a button to open PDF in new tab.
<a href='/pdf/carnival-texts/mypdf.pdf'>Test LINK</a>
<a href='FULLLINK/pdf/...
0
votes
0
answers
23
views
How to make sure my public facing react application is not exposing my backend application endpoints?
I have a react application for the frontend and an express application for the back end. The application is a public facing application, where the user does not have to login and onload, there is a ...
0
votes
0
answers
24
views
libssh2 api support in c to use both private key and password together
I have a remote host that has public/private key and password both enabled. They have to be done together in order to obtain a connection. I am using the libssh2 api and have no idea how to code that ...
-1
votes
1
answer
56
views
Laravel app inside Wordpress website run on app folder and not in app/public folder?
I have a wordpress website in which I want to use a Laravel app in a subfolder
Like this:
https://website.com/* -> wordpress
https://website.com/app/ -> laravel
But I only managed to run it ...
0
votes
1
answer
37
views
Access image folder from Laravel Project A to Laravel B, C, D etc
Let's say I have main project Laravel A, which stores photos of employees. I need the rest of the Laravel projects B, C and so on to access or use these photos from Laravel A (Like profile pictures ...
0
votes
1
answer
38
views
S3 does not return any errors but does not upload the file to the cloud
Good friends, I have a problem when registering a file in S3 from Laravel, the point is that after putting the credentials in the .env when clicking on register it does not give me any error message ...
1
vote
0
answers
83
views
java.sql.SQLNonTransientConnectionException: Public Key Retrieval is not allowed
getting this error while up spring boot application, i try the lot as solution provide by net , but still getting same , can any buddy help with this
java.sql.SQLNonTransientConnectionException: ...
0
votes
0
answers
25
views
Override public static
How do I change the following files in function.php:
if ( empty( $atts ) || ! isset( $atts['id'] ) ) {
return '';
}
/**
* Applies a filter to override the ...
1
vote
1
answer
63
views
Styles, font and js don't load on laravel deployed on shared hosting
As mentioned above, styles, font and js don't load on laravel deployed on shared hosting. How does it look like on my localhost:
And that's same code deployed on hosting:
Where I take it from:
,
And ...